[node-patches] Change in ovirt-node[master]: ovirt-node-upgrade:confirm whether self.iso_tmp is None befo...
hadong0720 at gmail.com
hadong0720 at gmail.com
Tue Jun 25 04:09:12 UTC 2013
hadong has uploaded a new change for review.
Change subject: ovirt-node-upgrade:confirm whether self.iso_tmp is None before run os.path.exists(self.iso_tmp)
......................................................................
ovirt-node-upgrade:confirm whether self.iso_tmp is None before
run os.path.exists(self.iso_tmp)
Change-Id: I12391e56d8a1eb4699239b486af479e1fba02b56
Signed-off-by: hadong <hadong0720 at gmail.com>
---
M scripts/ovirt-node-upgrade.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/54/16054/1
diff --git a/scripts/ovirt-node-upgrade.py b/scripts/ovirt-node-upgrade.py
index 9d780d5..6828fc8 100755
--- a/scripts/ovirt-node-upgrade.py
+++ b/scripts/ovirt-node-upgrade.py
@@ -208,7 +208,7 @@
self._system(which("umount"), dir)
os.remove(self._lock_file)
shutil.rmtree(self._tmp_dir)
- if os.path.exists(self.iso_tmp):
+ if self.iso_tmp and os.path.exists(self.iso_tmp):
os.remove(self.iso_tmp)
except:
self._logger.warning("Cleanup Failed")
--
To view, visit http://gerrit.ovirt.org/16054
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I12391e56d8a1eb4699239b486af479e1fba02b56
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>
More information about the node-patches
mailing list