Greg Padgett has uploaded a new change for review. Change subject: Fix --vm-status when maintenance mode has never been enabled ......................................................................
Fix --vm-status when maintenance mode has never been enabled Change-Id: I2b1a4f91e826a95d22a4e8b93a044aec2baf9003 Bug-Url: https://bugzilla.redhat.com/1041203 Signed-off-by: Greg Padgett <gpadg...@redhat.com> --- M src/ovirt_hosted_engine_setup/vm_status.py 1 file changed, 6 insertions(+), 3 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-setup refs/changes/40/22340/1 diff --git a/src/ovirt_hosted_engine_setup/vm_status.py b/src/ovirt_hosted_engine_setup/vm_status.py index 20866e3..4bc2f56 100644 --- a/src/ovirt_hosted_engine_setup/vm_status.py +++ b/src/ovirt_hosted_engine_setup/vm_status.py @@ -74,9 +74,12 @@ _('Cannot connect to the HA daemon, please check the logs.\n') ) cluster_stats = {} - - if cluster_stats.get(client.HAClient.GlobalMdFlags.MAINTENANCE, False): - print _('\n\n!! Cluster is in GLOBAL MAINTENANCE mode !!\n') + else: + if cluster_stats.get( + client.HAClient.GlobalMdFlags.MAINTENANCE, + False + ): + print _('\n\n!! Cluster is in GLOBAL MAINTENANCE mode !!\n') for host_id, host_stats in all_host_stats.items(): print _('\n\n--== Host {host_id} status ==--\n').format( -- To view, visit http://gerrit.ovirt.org/22340 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2b1a4f91e826a95d22a4e8b93a044aec2baf9003 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-hosted-engine-setup Gerrit-Branch: master Gerrit-Owner: Greg Padgett <gpadg...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches