Sandro Bonazzola has uploaded a new change for review.

Change subject: UX: ask to install the engine only on first host
......................................................................

UX: ask to install the engine only on first host

On additional host setup avoid to ask to install the
engine: it has been already installed while deploying
first host.

Change-Id: Icc3851c512a03d6677595009f9b3deb7e7068042
Signed-off-by: Sandro Bonazzola <[email protected]>
---
M src/plugins/ovirt-hosted-engine-setup/engine/health.py
1 file changed, 10 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-setup 
refs/changes/74/17874/1

diff --git a/src/plugins/ovirt-hosted-engine-setup/engine/health.py 
b/src/plugins/ovirt-hosted-engine-setup/engine/health.py
index 7d0ba88..8efce73 100644
--- a/src/plugins/ovirt-hosted-engine-setup/engine/health.py
+++ b/src/plugins/ovirt-hosted-engine-setup/engine/health.py
@@ -59,15 +59,16 @@
             ohostedcons.NetworkEnv.OVIRT_HOSTED_ENGINE_FQDN
         ]
         live_checker = check_liveliness.LivelinessChecker()
-        self.dialog.queryString(
-            name='OVEHOSTED_ENGINE_UP',
-            note=_(
-                'Please install the engine in the VM, '
-                'hit enter when finished.'
-            ),
-            prompt=True,
-            default='y'  # Allow enter without any value
-        )
+        if not self.environment[ohostedcons.CoreEnv.IS_ADDITIONAL_HOST]:
+            self.dialog.queryString(
+                name='OVEHOSTED_ENGINE_UP',
+                note=_(
+                    'Please install the engine in the VM, '
+                    'hit enter when finished.'
+                ),
+                prompt=True,
+                default='y'  # Allow enter without any value
+            )
         while poll:
             if live_checker.isEngineUp(fqdn):
                 poll = False


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icc3851c512a03d6677595009f9b3deb7e7068042
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-setup
Gerrit-Branch: master
Gerrit-Owner: Sandro Bonazzola <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to