Commit 631aedf9 authored by Michael Hanselmann's avatar Michael Hanselmann

Re-added constant mistakenly removed in 58f0ce16

“INSTANCE_DOWN” is still being used.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent f0fd35b1
......@@ -68,14 +68,14 @@ import ganeti.masterd.instance # pylint: disable=W0611
DRBD_META_SIZE = 128
# States of instance
INSTANCE_DOWN = [constants.ADMINST_DOWN]
INSTANCE_ONLINE = [constants.ADMINST_DOWN, constants.ADMINST_UP]
INSTANCE_NOT_RUNNING = [constants.ADMINST_DOWN, constants.ADMINST_OFFLINE]
#: Instance status in which an instance can be marked as offline/online
CAN_CHANGE_INSTANCE_OFFLINE = [
constants.ADMINST_DOWN,
CAN_CHANGE_INSTANCE_OFFLINE = (frozenset(INSTANCE_DOWN) | frozenset([
constants.ADMINST_OFFLINE,
]
]))
class ResultWithJobs:
......
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