[node-patches] Change in ovirt-node[master]: edit-node: fix global name 'options' is not defined issue
hadong0720 at gmail.com
hadong0720 at gmail.com
Wed Aug 6 11:36:53 UTC 2014
hadong has uploaded a new change for review.
Change subject: edit-node: fix global name 'options' is not defined issue
......................................................................
edit-node: fix global name 'options' is not defined issue
Change-Id: Iaab95e4b712604f35d367f60c71cba89307e3e37
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1127201
Signed-off-by: hadong <hadong at redhat.com>
---
M tools/edit-node
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/38/31138/1
diff --git a/tools/edit-node b/tools/edit-node
index 8e94694..9287953 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -74,6 +74,7 @@
self.tmpdir = "/var/tmp"
self.dd_dir = None
self.item = None
+ self.tmprepo = ""
"""The directory in which all temporary files will be created."""
self.compress_type = None
@@ -972,6 +973,7 @@
options.repo = tempfile.mkstemp(".repo")
with open(options.repo, "w") as f:
f.write(conf_builder)
+ self.tmprepo = options.repo
os.system("mkdir %s/tmp/rpms" % self._instroot)
cmd = "mount -o bind %s %s/tmp/rpms" \
% (self.item, self._instroot)
@@ -1125,7 +1127,7 @@
# cleanup local rpms if exists
if os.system("umount %s/tmp/rpms" % self._instroot):
os.system("rmdir %s/tmp/rpms" % self._instroot)
- if self.item and os.path.exists(options.repo):
+ if self.item and os.path.exists(self.tmprepo):
os.system("rm -f %s" % options.repo)
if os.path.exists(self.dd_dir):
os.system("umount %s" % self.dd_dir)
--
To view, visit http://gerrit.ovirt.org/31138
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaab95e4b712604f35d367f60c71cba89307e3e37
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