Merge pull request #2970 from rigaspapas/opsworks-online-status

Fix the online status in OpsWorks
This commit is contained in:
Bert Blommers 2020-05-07 12:27:53 +01:00 committed by GitHub
commit f1f7ddb69d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -125,6 +125,9 @@ class OpsworkInstance(BaseModel):
def status(self):
if self.instance is None:
return "stopped"
# OpsWorks reports the "running" state as "online"
elif self.instance._state.name == "running":
return "online"
return self.instance._state.name
def to_dict(self):