git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix IndexError: list index out of range
[plcapi.git]
/
PLC
/
Methods
/
GetBootMedium.py
diff --git
a/PLC/Methods/GetBootMedium.py
b/PLC/Methods/GetBootMedium.py
index
00d6f2d
..
cb95881
100644
(file)
--- 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']
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
log_file="%s.log"%node_image