Yedidyah Bar David has uploaded a new change for review.

Change subject: packaging: setup: allinone: Prevent on upgrade
......................................................................

packaging: setup: allinone: Prevent on upgrade

Only allow all-in-one on a clean install.

Bug-Url: https://bugzilla.redhat.com/1063869
Change-Id: I91d94c2d17be0ecf39bb5aa40c602a20926bf283
Signed-off-by: Yedidyah Bar David <[email protected]>
---
M packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/all-in-one/core.py
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/79/24579/1

diff --git 
a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/all-in-one/core.py 
b/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/all-in-one/core.py
index 4efe38d..afc3304 100644
--- a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/all-in-one/core.py
+++ b/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/all-in-one/core.py
@@ -63,8 +63,13 @@
 
     @plugin.event(
         stage=plugin.Stages.STAGE_SETUP,
+        after=(
+            osetupcons.Stages.DB_CONNECTION_SETUP,
+        ),
         condition=lambda self: self.environment[
             osetupcons.AIOEnv.ENABLE
+        ] and self.environment[
+            osetupcons.DBEnv.NEW_DATABASE
         ],
     )
     def _setup(self):


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I91d94c2d17be0ecf39bb5aa40c602a20926bf283
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.4
Gerrit-Owner: Yedidyah Bar David <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to