[node-patches] Change in ovirt-node[master]: functions: Let persist return the correct retval

fabiand at redhat.com fabiand at redhat.com
Fri Sep 5 14:35:46 UTC 2014


Fabian Deutsch has uploaded a new change for review.

Change subject: functions: Let persist return the correct retval
......................................................................

functions: Let persist return the correct retval

Change-Id: I7ad0559c926331e74bad6fe352574749b35ce8ce
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirt-functions.in
1 file changed, 1 insertion(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/28/32528/1

diff --git a/scripts/ovirt-functions.in b/scripts/ovirt-functions.in
index 9da82a7..254f988 100644
--- a/scripts/ovirt-functions.in
+++ b/scripts/ovirt-functions.in
@@ -668,11 +668,9 @@
 ovirt_store_config() {
     for p in "$@"; do
         python <<EOP
-import sys
 from ovirtnode.ovirtfunctions import ovirt_store_config_retnum
 
-ovirt_store_config_retnum("$p")
-sys.exit(0)
+raise SystemExit(ovirt_store_config_retnum("$p"))
 EOP
         rc=$?
         if [ $rc -eq 1 ] || [ $rc -eq 2 ]; then


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7ad0559c926331e74bad6fe352574749b35ce8ce
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list