[node-patches] Change in ovirt-node[master]: fixing finding default menu entry for 6.6 iso images

tlitovsk at redhat.com tlitovsk at redhat.com
Wed Dec 31 07:13:14 UTC 2014


Anatoly Litovsky has uploaded a new change for review.

Change subject: fixing finding default menu entry for 6.6 iso images
......................................................................

fixing finding default menu entry for 6.6 iso images

Change-Id: I3b0b93b75ad37ab1a0ccf890739bd692a5f835fe
Signed-off-by: Tolik Litovsky <tlitovsk at redhat.com>
---
M tools/edit-node
1 file changed, 7 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/90/36490/1

diff --git a/tools/edit-node b/tools/edit-node
old mode 100644
new mode 100755
index 79865d7..3e2a4be
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -94,12 +94,13 @@
                     self.__items.append(item.copy())
                 name, value = SimpleMenuParser.__parse_label_line(line.strip())
                 item = {name: value}
-            if SimpleMenuParser.__indentation(line) > 0:
-                name, value = SimpleMenuParser.__parse_label_line(line.strip())
-                # must treat menu differently
-                if name == "menu" and value == "default":
+
+            name, value = SimpleMenuParser.__parse_label_line(line.strip())
+            # must treat menu differently
+            if name == "menu" and value == "default":
                     self.__default_entry = item.copy()
-                elif name == "append":
+            if SimpleMenuParser.__indentation(line) > 0:
+                if name == "append":
                     item[name] = value
                     item["arg_line"] = line_number
                 else:
@@ -182,7 +183,7 @@
 
         self.ks = None
         """optional kickstart file as a recipe for editing the image"""
-        
+
         self._ImageCreator__fstype = "ext4"
 
         self._ImageCreator__selinux_mountpoint = "/sys/fs/selinux"


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3b0b93b75ad37ab1a0ccf890739bd692a5f835fe
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Anatoly Litovsky <tlitovsk at redhat.com>



More information about the node-patches mailing list