New patch submitted by Yotam Oron (yoron(a)redhat.com)
You can review this change at:
http://gerrit.usersys.redhat.com/715
commit 50f18d38e1ab7106def66a82147bd7590e8a5e70
Author: Yotam Oron <yoron(a)redhat.com>
Date: Sun Jul 17 12:07:54 2011 +0300
BZ#719857 - Add reboot message to certificate reject
When the user rejects the certificate's fingerprint, the host will reboot -
added a message about that.
Change-Id: I6b8a60eeb56e12627e1ad3213d453a7dfb03de0d
diff --git a/vdsm_reg/rhevm.py b/vdsm_reg/rhevm.py
index 5ff8be6..d32c639 100755
--- a/vdsm_reg/rhevm.py
+++ b/vdsm_reg/rhevm.py
@@ -143,8 +143,9 @@ class Plugin(PluginBase):
if deployUtil.getRhevmCert(self.rhevm_server.value(),
self.rhevm_server_port.value()):
path, dontCare = deployUtil.certPaths('')
fp = deployUtil.generateFingerPrint(path)
- approval = ButtonChoiceWindow(self.ncs.screen, \
- "Certificate Fingerprint:", fp, buttons =
['Approve', 'Reject'])
+ approval = ButtonChoiceWindow(self.ncs.screen,
+ "Certificate Fingerprint (Rejecting the finrgerprint
will reboot the host):",
+ fp, buttons = ['Approve', 'Reject'])
if 'reject' == approval:
out, err, rc = deployUtil._logExec(['/sbin/reboot'])
if rc is not 0: