Skip to contentSkip to conversation

pygrub: correct typo in --args assignment

PATCH In review Olaf Hering 2 participants 2 messages Oct 8, 2012 – Oct 9, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pygrub: correct typo in --args assignment

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1349716567 -7200
# Node ID de76ea76418f19248fd3e5541344a51c38c716ae # Parent c9f621893a05e3e447ba6770f8ae912721712569
pygrub: correct typo in --args assignment

If pygrub was called with --args="some thing", then this string should be append to the kernel command line. But the last changeset 25941:795c493fe561 contained a typo, it assigns 'args' instead of 'arg'.

Rename the local variable which holds the string from the domain config file to avoid further confusion.

tools/pygrub/src/pygrub +3 -3
diff -r c9f621893a05 -r de76ea76418f tools/pygrub/src/pygrub
@@ -585,7 +585,7 @@ def get_entry_idx(cf, entry):
 
     return None
 
-def run_grub(file, entry, fs, arg):
+def run_grub(file, entry, fs, cfg_args):
     global g
     global sel
 
@@ -622,8 +622,8 @@ def run_grub(file, entry, fs, arg):
         grubcfg["ramdisk"] = img.initrd[1]
     if img.args:
         grubcfg["args"] += img.args
-    if arg:
-        grubcfg["args"] += " " + args
+    if cfg_args:
+        grubcfg["args"] += " " + cfg_args
 
     return grubcfg
#1 lore raw
Quoted 7 lines · Olaf Hering

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1349716567 -7200
# Node ID de76ea76418f19248fd3e5541344a51c38c716ae # Parent c9f621893a05e3e447ba6770f8ae912721712569
pygrub: correct typo in --args assignment

Quoted 8 lines

If pygrub was called with --args="some thing", then this string should be append to the kernel command line. But the last changeset 25941:795c493fe561 contained a typo, it assigns 'args' instead of 'arg'.

Rename the local variable which holds the string from the domain config file to avoid further confusion.

Acked and committed, thanks.