fix: DECOMMISSIONED typo

fixes #60
pull/61/head
db0 2023-11-10 02:08:33 +01:00
parent e1b5adecd7
commit d6a7c94284
2 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ class Instance(db.Model):
return enums.InstanceState.UNREACHABLE return enums.InstanceState.UNREACHABLE
if self.poll_failures <= 30*POLLS_PER_DAY: if self.poll_failures <= 30*POLLS_PER_DAY:
return enums.InstanceState.OFFLINE return enums.InstanceState.OFFLINE
return enums.InstanceState.DECIMMISSIONED return enums.InstanceState.DECOMMISSIONED
def has_flag(self, flag_enum): def has_flag(self, flag_enum):
for flag in self.flags: for flag in self.flags:

View File

@ -28,7 +28,7 @@ class InstanceState(enum.Enum):
UP = 0 UP = 0
UNREACHABLE = 1 UNREACHABLE = 1
OFFLINE = 2 OFFLINE = 2
DECIMMISSIONED = 3 DECOMMISSIONED = 3
class InstanceFlags(enum.Enum): class InstanceFlags(enum.Enum):
RESTRICTED = 0 RESTRICTED = 0