Commit dfb34028 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Add function to read cluster domain secret


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 895eb320
......@@ -599,6 +599,13 @@ def _CheckStorageType(storage_type):
_RequireFileStorage()
def _GetClusterDomainSecret():
"""Reads the cluster domain secret.
"""
return utils.ReadOneLineFile(constants.CLUSTER_DOMAIN_SECRET_FILE,
strict=True)
def _CheckInstanceDown(lu, instance, reason):
"""Ensure that an instance is not running."""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment