git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e1f7dd
)
fix IndexError: list index out of range
author
S.Çağlar Onur
<caglar@cs.princeton.edu>
Wed, 26 May 2010 18:12:03 +0000
(18:12 +0000)
committer
S.Çağlar Onur
<caglar@cs.princeton.edu>
Wed, 26 May 2010 18:12:03 +0000
(18:12 +0000)
PLC/Methods/GetBootMedium.py
patch
|
blob
|
history
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']
- 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