[node-patches] Change in ovirt-node[master]: edit-node: fix Can't Bind Mount Repo File issue
hadong0720 at gmail.com
hadong0720 at gmail.com
Sat Oct 11 04:34:47 UTC 2014
hadong has uploaded a new change for review.
Change subject: edit-node: fix Can't Bind Mount Repo File issue
......................................................................
edit-node: fix Can't Bind Mount Repo File issue
Change-Id: Ic4ab1b726021967628c158147b1f5a968b965598
Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=928756
Signed-off-by: hadong <hadong at redhat.com>
---
M tools/edit-node
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/19/34019/1
diff --git a/tools/edit-node b/tools/edit-node
index db5f965..5ef0fd8 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -1008,8 +1008,8 @@
self.item = ""
logging.warning("Failed to get the path from repo file")
if self.item and os.path.exists(self.item):
- options.repo = tempfile.mkstemp(".repo")
- with open(options.repo[1], "w") as f:
+ options.repo = tempfile.mkstemp(".repo")[1]
+ with open(options.repo, "w") as f:
f.write(conf_builder)
self.tmprepo = options.repo
os.system("mkdir %s/tmp/rpms" % self._instroot)
@@ -1169,7 +1169,7 @@
if os.system("umount %s/tmp/rpms" % self._instroot):
os.system("rmdir %s/tmp/rpms" % self._instroot)
if self.item and os.path.exists(self.tmprepo):
- os.system("rm -f %s" % options.repo)
+ os.system("rm -f %s" % self.tmprepo)
if os.path.exists(self.dd_dir):
os.system("umount %s" % self.dd_dir)
shutil.rmtree(self.dd_dir)
--
To view, visit http://gerrit.ovirt.org/34019
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic4ab1b726021967628c158147b1f5a968b965598
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