Revision 631aedf9 lib/cmdlib.py

b/lib/cmdlib.py
68 68
DRBD_META_SIZE = 128
69 69

  
70 70
# States of instance
71
INSTANCE_DOWN = [constants.ADMINST_DOWN]
71 72
INSTANCE_ONLINE = [constants.ADMINST_DOWN, constants.ADMINST_UP]
72 73
INSTANCE_NOT_RUNNING = [constants.ADMINST_DOWN, constants.ADMINST_OFFLINE]
73 74

  
74 75
#: Instance status in which an instance can be marked as offline/online
75
CAN_CHANGE_INSTANCE_OFFLINE = [
76
  constants.ADMINST_DOWN,
76
CAN_CHANGE_INSTANCE_OFFLINE = (frozenset(INSTANCE_DOWN) | frozenset([
77 77
  constants.ADMINST_OFFLINE,
78
  ]
78
  ]))
79 79

  
80 80

  
81 81
class ResultWithJobs:

Also available in: Unified diff