Alon Bar-Lev has uploaded a new change for review.

Change subject: packaging: setup: remove: disable service only if actually 
exists
......................................................................

packaging: setup: remove: disable service only if actually exists

Change-Id: Ic97daa76dfb365c85d7f69d49b0a034de5c17a41
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M packaging/setup/plugins/ovirt-engine-remove/ovirt-engine-dwh/core/service.py
1 file changed, 7 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-dwh refs/changes/17/25517/1

diff --git 
a/packaging/setup/plugins/ovirt-engine-remove/ovirt-engine-dwh/core/service.py 
b/packaging/setup/plugins/ovirt-engine-remove/ovirt-engine-dwh/core/service.py
index 30bc140..7c0ce31 100644
--- 
a/packaging/setup/plugins/ovirt-engine-remove/ovirt-engine-dwh/core/service.py
+++ 
b/packaging/setup/plugins/ovirt-engine-remove/ovirt-engine-dwh/core/service.py
@@ -41,10 +41,13 @@
         ],
     )
     def _misc(self):
-        self.services.startup(
-            name=odwhcons.Const.SERVICE_NAME,
-            state=False,
-        )
+        if self.services.exists(
+            name=odwhcons.Const.SERVICE_NAME
+        ):
+            self.services.startup(
+                name=odwhcons.Const.SERVICE_NAME,
+                state=False,
+            )
 
 
 # vim: expandtab tabstop=4 shiftwidth=4


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic97daa76dfb365c85d7f69d49b0a034de5c17a41
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-dwh
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to