[node-patches] Change in ovirt-node[master]: edit-node: Do not change iso file name when using with "-n" ...

ouyang guohua ouyanggh0815 at gmail.com
Fri Nov 15 08:36:26 UTC 2013


ouyang guohua has uploaded a new change for review.

Change subject: edit-node: Do not change iso file name when using with "-n" or "--name"
......................................................................

edit-node: Do not change iso file name when using with "-n" or "--name"

    Using with "-n" or "--name", the generated iso file name should just match the name,
    skipping to append plugins or packages name to it.

Change-Id: I41b9a3264961c929cce820a94adf258180401e49
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1030810
Signed-off-by: Ouyang guohua <ouyanggh0815 at gmail.com>
---
M tools/edit-node
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/95/21295/1

diff --git a/tools/edit-node b/tools/edit-node
index 27d538a..cbf173f 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -1728,10 +1728,10 @@
                     finished_iso = build_isoname_for_plugins(edited_iso, [n])
                 else:
                     finished_iso = edited_iso
-                print "Moving '%s' to '%s'" % (edited_iso, finished_iso)
-                shutil.move(edited_iso, finished_iso)
-
-                logging.info("%s.iso saved to %s" % (finished_iso, output))
+                if not options.name:
+                    print "Moving '%s' to '%s'" % (edited_iso, finished_iso)
+                    shutil.move(edited_iso, finished_iso)
+                    logging.info("%s.iso saved to %s" % (finished_iso, output))
             else:
                 # in manifest mode print do necessary items
                 editor.unmount()


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I41b9a3264961c929cce820a94adf258180401e49
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: ouyang guohua <ouyanggh0815 at gmail.com>



More information about the node-patches mailing list