parent
e1b5adecd7
commit
d6a7c94284
|
@ -241,7 +241,7 @@ class Instance(db.Model):
|
|||
return enums.InstanceState.UNREACHABLE
|
||||
if self.poll_failures <= 30*POLLS_PER_DAY:
|
||||
return enums.InstanceState.OFFLINE
|
||||
return enums.InstanceState.DECIMMISSIONED
|
||||
return enums.InstanceState.DECOMMISSIONED
|
||||
|
||||
def has_flag(self, flag_enum):
|
||||
for flag in self.flags:
|
||||
|
|
|
@ -28,7 +28,7 @@ class InstanceState(enum.Enum):
|
|||
UP = 0
|
||||
UNREACHABLE = 1
|
||||
OFFLINE = 2
|
||||
DECIMMISSIONED = 3
|
||||
DECOMMISSIONED = 3
|
||||
|
||||
class InstanceFlags(enum.Enum):
|
||||
RESTRICTED = 0
|
||||
|
|
Loading…
Reference in New Issue