[node-patches] Change in ovirt-node[master]: edit-node: Set system release according to the name

fabiand at redhat.com fabiand at redhat.com
Thu Sep 4 13:54:53 UTC 2014


Fabian Deutsch has uploaded a new change for review.

Change subject: edit-node: Set system release according to the name
......................................................................

edit-node: Set system release according to the name

system-release will now use the same name which is passed with --name.

Change-Id: Id40f4ccafa872a259b9b7e29574682df1d76b9c2
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1087118
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M tools/edit-node
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/82/32482/1

diff --git a/tools/edit-node b/tools/edit-node
index 573df52..06f52ca 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -528,12 +528,12 @@
         return output
 
     def _update_version(self, options):
-        ver = self._print_version().strip()
+        ver = options.name or self._print_version()
         f = open("%s/etc/system-release" % self._instroot, "w")
         status = "Edited"
         if not options.gpgcheck:
             status += ", Unsigned"
-        f.write("%s (%s)\n" % (ver, status))
+        f.write("%s (%s)\n" % (ver.strip(), status))
         f.close()
         print "done"
         return True


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id40f4ccafa872a259b9b7e29574682df1d76b9c2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list