From a48783f88b8df0a8d6e1bf6b854e17aee22117fc Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 10 Jun 2010 14:53:42 +0000 Subject: [PATCH 1/1] fix usage of the 'kargs' node tag --- PLC/Methods/GetBootMedium.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/PLC/Methods/GetBootMedium.py b/PLC/Methods/GetBootMedium.py index 3624122..b403ca1 100644 --- a/PLC/Methods/GetBootMedium.py +++ b/PLC/Methods/GetBootMedium.py @@ -338,9 +338,8 @@ class GetBootMedium(Method): if "variant" in build_sh_spec: build_sh_options += " -V %s"%build_sh_spec['variant'] - if len(build_sh_spec['kargs']) > 0: - for karg in build_sh_spec['kargs']: - build_sh_options += ' -k "%s"'%karg + for karg in build_sh_spec['kargs']: + build_sh_options += ' -k "%s"'%karg log_file="%s.log"%node_image @@ -408,7 +407,7 @@ class GetBootMedium(Method): if tag['tagname'] == 'kvariant': build_sh_spec['variant'] = tag['value'] if tag['tagname'] == 'kargs': - build_sh_spec['kargs'].append(tag['value'].split()) + build_sh_spec['kargs'] += tag['value'].split() if tag['tagname'] == 'no-hangcheck': build_sh_spec['kargs'].append('hcheck_reboot0') # then options can override tags -- 2.43.0