[node-patches] Change in ovirt-node[master]: enforce a cim password before enabling
jboggs at redhat.com
jboggs at redhat.com
Mon Oct 29 15:22:37 UTC 2012
Joey Boggs has uploaded a new change for review.
Change subject: enforce a cim password before enabling
......................................................................
enforce a cim password before enabling
rhbz#867746
Signed-off-by: Joey Boggs <jboggs at redhat.com>
Change-Id: I27c3d5921dc860973b88108faf64b15a5c280636
---
M plugins/cim.py
1 file changed, 10 insertions(+), 5 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/08/8908/1
diff --git a/plugins/cim.py b/plugins/cim.py
index 28bf0cd..adaef05 100755
--- a/plugins/cim.py
+++ b/plugins/cim.py
@@ -102,13 +102,18 @@
self.ncs.reset_screen_colors()
return True
elif is_transition_to_enabled or is_enabled:
- if enable_cim():
- ButtonChoiceWindow(self.ncs.screen, "CIM Configuration",
- "CIM Successfully Enabled", buttons=['Ok'])
- self.ncs.reset_screen_colors()
+ if len(self.cim_password_1.value()) > 0:
+ if enable_cim():
+ ButtonChoiceWindow(self.ncs.screen, "CIM Configuration",
+ "CIM Successfully Enabled", buttons=['Ok'])
+ self.ncs.reset_screen_colors()
+ else:
+ ButtonChoiceWindow(self.ncs.screen, "CIM Configuration",
+ "CIM Configuration Failed", buttons=['Ok'])
+ self.ncs.reset_screen_colors()
else:
ButtonChoiceWindow(self.ncs.screen, "CIM Configuration",
- "CIM Configuration Failed", buttons=['Ok'])
+ "Please Enter a Password", buttons=['Ok'])
self.ncs.reset_screen_colors()
def __set_cim_password(self):
--
To view, visit http://gerrit.ovirt.org/8908
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I27c3d5921dc860973b88108faf64b15a5c280636
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>
More information about the node-patches
mailing list