Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
[WIP]Adding is_configured property
Browse files Browse the repository at this point in the history
Modified the reboot method

Signed-off-by: mnadeem92 <[email protected]>
  • Loading branch information
mnadeem92 committed Oct 14, 2019
1 parent 0f62814 commit 7d3df87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cfme/utils/appliance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,11 @@ def _version_tostr(x):
for k in set(self.CONFIG_MAPPING.values())
if k in self.__dict__})

@property
def is_configured(self):
""" Check if the appliance is configured or unconfigured."""
return self.db.has_database and self.db.has_tables

@classmethod
def from_json(cls, json_string):
return cls(**json.loads(json_string))
Expand Down

0 comments on commit 7d3df87

Please sign in to comment.