-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][WIP] Adding is_configured property #9478
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question, thanks for this PR!
cfme/utils/appliance/__init__.py
Outdated
@property | ||
def is_configured(self): | ||
""" Check if the appliance is configured or unconfigured.""" | ||
return self.db.has_database |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the DB is configured shouldn't we also check if the DB has_tables
return self.db.has_database | |
return self.db.has_database and self.db.has_tables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to wait_for_web_ui
argument in reboot
cfme/utils/appliance/__init__.py
Outdated
@@ -1624,7 +1629,8 @@ def restart_evm_rude(self, log_callback=None): | |||
self.evmserverd.start() | |||
|
|||
@logger_wrap("Rebooting Appliance: {}") | |||
def reboot(self, wait_for_web_ui=True, log_callback=None): | |||
def reboot(self, log_callback=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required:
It will break our automation with unexpected keyword argument
.
Please take wait_for_web_ui
arg from user only else I would expect all changes in repo in same PR
402a56f
to
178c1fe
Compare
Modified the reboot method Signed-off-by: mnadeem92 <[email protected]>
178c1fe
to
7d3df87
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@property | ||
def is_configured(self): | ||
""" Check if the appliance is configured or unconfigured.""" | ||
return self.db.has_database and self.db.has_tables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd look for better way to check whether appliance configured or not. existence of database and tables doesn't guarantee that appliance is configured.
No description provided.