[node-patches] Change in ovirt-node[master]: edit-node: fix iso file name from stripping characters

jboggs at redhat.com jboggs at redhat.com
Mon Mar 18 19:20:36 UTC 2013


Joey Boggs has uploaded a new change for review.

Change subject: edit-node: fix iso file name from stripping characters
......................................................................

edit-node: fix iso file name from stripping characters

Change-Id: Id229579f5717529924abb1ce913f1cc3b045ad39
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
M tools/edit-node
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/53/13153/1

diff --git a/tools/edit-node b/tools/edit-node
index b4ecb16..aa29c8b 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -1515,7 +1515,7 @@
                     n = n + "."
                 rel_tag=LiveOS.strip(".iso").split(".")[-1]
                 finished_iso = "%s.%s%s.iso" % \
-                    (edited_iso.strip("%s.edited.iso" %rel_tag), n.replace(" ","-"), rel_tag)
+                    (edited_iso.rstrip("%s.edited.iso" %rel_tag), n.replace(" ","-"), rel_tag)
                 shutil.move(edited_iso, finished_iso)
 
                 logging.info("%s.iso saved to %s"  % (editor.name, finished_iso))


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id229579f5717529924abb1ce913f1cc3b045ad39
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>



More information about the node-patches mailing list