Skip to contentSkip to conversation

small XendConfig cleanup

PATCH New John Levon 1 participant 1 message Jan 5, 2007

lore
Share & tools
lore

John Levon

author
#0 lore raw

PATCH 1/1 small XendConfig cleanup

# HG changeset patch
# User [email protected]
# Date 1168013289 28800
# Node ID 70d8db84401c344fa3e99e2cacb1431555c99ce4 # Parent 476bb3dead3c43a38dc06a1cde6d2ac0bd1ad1e8 Cleanup some dead code in XendConfig.

tools/python/xen/xend/XendConfig.py +2 -2
@@ -1117,10 +1117,10 @@ class XendConfig(dict):
 
         # attempt to extract extra arguments from SXP config
         arg_ip = sxp.child_value(image_sxp, 'ip')
-        if arg_ip and not re.search(r'ip=[^ ]+', kernel_args):
+        if arg_ip:
             kernel_args += 'ip=%s ' % arg_ip
         arg_root = sxp.child_value(image_sxp, 'root')
-        if arg_root and not re.search(r'root=', kernel_args):
+        if arg_root:
             kernel_args += 'root=%s ' % arg_root
 
         # user-specified args must come last: previous releases did this and