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

fabiand at redhat.com fabiand at redhat.com
Fri Sep 5 14:37:14 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/29/32529/1

diff --git a/scripts/ovirt-functions.in b/scripts/ovirt-functions.in
index 794bf2f..502de41 100644
--- a/scripts/ovirt-functions.in
+++ b/scripts/ovirt-functions.in
@@ -649,11 +649,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/32529
To unsubscribe, visit http://gerrit.ovirt.org/settings

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



More information about the node-patches mailing list