[node-patches] Change in ovirt-node[master]: Remove the temporary file even thougth augtool fails

wenyi at linux.vnet.ibm.com wenyi at linux.vnet.ibm.com
Fri Nov 16 03:05:15 UTC 2012


Wenyi Gao has uploaded a new change for review.

Change subject: Remove the temporary file even thougth augtool fails
......................................................................

Remove the temporary file even thougth augtool fails

Remove the tpmporary file even thougth augtool fails
to run commands from it.

Change-Id: I9f5c608c7028fae851b4946dfc5bfa1b824f27c5
Signed-off-by: Wenyi Gao <wenyi at linux.vnet.ibm.com>
---
M scripts/ovirt-functions.in
1 file changed, 1 insertion(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/80/9280/1

diff --git a/scripts/ovirt-functions.in b/scripts/ovirt-functions.in
index 712af3e..c98d958 100644
--- a/scripts/ovirt-functions.in
+++ b/scripts/ovirt-functions.in
@@ -638,9 +638,7 @@
 EOF
     /usr/bin/augtool < $tmpaug > /dev/null
     rc=$?
-    if [ $rc -eq 0 ]; then
-        rm $tmpaug
-    fi
+    rm -f $tmpaug
     return $rc
 }
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9f5c608c7028fae851b4946dfc5bfa1b824f27c5
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Wenyi Gao <wenyi at linux.vnet.ibm.com>



More information about the node-patches mailing list