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

Change subject: services: openrc: do not fail startup if service missing
......................................................................

services: openrc: do not fail startup if service missing

Change-Id: I59a6411867348b0514ef2f5a6ace130f9106ebe2
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M ChangeLog
M src/plugins/otopi/services/openrc.py
2 files changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/43/14243/1

diff --git a/ChangeLog b/ChangeLog
index a18eb04..64e5636 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@
  * dialog: fix handling of empty string notes.
  * dialog: support tuples for note like list.
  * build: re-introduce external gettext packaging.
+ * services: openrc: do not fail set startup if service missing.
 
 2013-02-14 - Version 1.0.0
 
diff --git a/src/plugins/otopi/services/openrc.py 
b/src/plugins/otopi/services/openrc.py
index 92a53da..9e84645 100644
--- a/src/plugins/otopi/services/openrc.py
+++ b/src/plugins/otopi/services/openrc.py
@@ -95,12 +95,13 @@
 
     def startup(self, name, state):
         self.logger.debug('set service %s startup to %s', name, state)
-        return self.execute(
+        self.execute(
             (
                 self.command.get('rc-update'),
                 'add' if state else 'del',
                 name
             ),
+            raiseOnError=False,
         )
 
     def state(self, name, state):


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I59a6411867348b0514ef2f5a6ace130f9106ebe2
Gerrit-PatchSet: 1
Gerrit-Project: otopi
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to