Commit 0cc9e018 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

watcher: Reformat constants



Make them match with style guide.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 9d7b1e53
......@@ -51,14 +51,19 @@ from ganeti.watcher import state
MAXTRIES = 5
BAD_STATES = [constants.INSTST_ERRORDOWN]
HELPLESS_STATES = [constants.INSTST_NODEDOWN, constants.INSTST_NODEOFFLINE]
NOTICE = 'NOTICE'
ERROR = 'ERROR'
# Global LUXI client object
client = None
BAD_STATES = frozenset([
constants.INSTST_ERRORDOWN,
])
HELPLESS_STATES = frozenset([
constants.INSTST_NODEDOWN,
constants.INSTST_NODEOFFLINE,
])
NOTICE = "NOTICE"
ERROR = "ERROR"
class NotMasterError(errors.GenericError):
......
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