Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: engine_page: fix logic to show fingerprint msg
......................................................................

engine_page: fix logic to show fingerprint msg

Show fingerprint review message only when there is fingerprint.

Change-Id: I30f4d8657f196ecdd23ff7d5e8ebdfbdca764963
Signed-off-by: Douglas Schilling Landgraf <[email protected]>
---
M src/engine_page.py
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node-plugin-vdsm 
refs/changes/95/20995/1

diff --git a/src/engine_page.py b/src/engine_page.py
index 0dd2903..f8d3587 100644
--- a/src/engine_page.py
+++ b/src/engine_page.py
@@ -121,15 +121,18 @@
                 self._cert_path, fingerprint = retrieveCetrificate(server,
                                                                    port)
                 self._server, self._port = server, port
+                title_msg = "\nPlease review the following SSL fingerprint" \
+                                " from Engine:\n"
             except Exception as e:
                 fingerprint = str(e)
+                title_msg = "\n"
                 buttons = [ui.Button("action.cert.reject", "Close")]
 
             self._fp_dialog = ui.Dialog("dialog.engine.fp",
                 "{engine_name} Fingerprint".format(
                     engine_name=config.engine_name),
                     [ui.Label("dialog.label[0]",
-                    "\nPlease review the following fingerprint from 
Engine:\n"),
+                    title_msg),
                     ui.Label("dialog.fp", fingerprint)])
 
             self._fp_dialog.buttons = buttons


-- 
To view, visit http://gerrit.ovirt.org/20995
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I30f4d8657f196ecdd23ff7d5e8ebdfbdca764963
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node-plugin-vdsm
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to