From 465b8a21950bdfc9cb670656cbab951f353d85a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Wed, 26 May 2010 18:12:03 +0000 Subject: [PATCH] fix IndexError: list index out of range --- PLC/Methods/GetBootMedium.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PLC/Methods/GetBootMedium.py b/PLC/Methods/GetBootMedium.py index 00d6f2d..cb95881 100644 --- a/PLC/Methods/GetBootMedium.py +++ b/PLC/Methods/GetBootMedium.py @@ -338,8 +338,9 @@ class GetBootMedium(Method): if "variant" in build_sh_spec: build_sh_options += " -V %s"%build_sh_spec['variant'] - for karg in build_sh_spec['kargs'][0]: - build_sh_options += ' -k "%s"'%karg + if len(build_sh_spec['kargs']) > 0: + for karg in build_sh_spec['kargs'][0]: + build_sh_options += ' -k "%s"'%karg log_file="%s.log"%node_image -- 2.43.0