From: john.levon@sun.com Subject: [PATCH] Cleanup some dead code in XendConfig Date: Tue, 16 Jan 2007 19:43:59 -0700 Message-ID: <9e244ca38dee0407b69d.1169005439@xenbld> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User john.levon@sun.com # Date 1169005426 28800 # Node ID 9e244ca38dee0407b69dd82e5b05314064664484 # Parent ce6684b05b953bf1ef88495883c30485b5407a5b Cleanup some dead code in XendConfig. Signed-off-by: John Levon diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py --- a/tools/python/xen/xend/XendConfig.py +++ b/tools/python/xen/xend/XendConfig.py @@ -1118,10 +1118,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