Code Review
/
yaml_builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
verify masters and workers are yaml lists
[yaml_builds.git]
/
scripts
/
update_bios_settings.py
diff --git
a/scripts/update_bios_settings.py
b/scripts/update_bios_settings.py
index
f15c07b
..
ecd510b
100644
(file)
--- a/
scripts/update_bios_settings.py
+++ b/
scripts/update_bios_settings.py
@@
-43,7
+43,7
@@
def create_rc_masters(source, target_suffix):
env.trim_blocks = True
env.lstrip_blocks = True
env.trim_blocks = True
env.lstrip_blocks = True
- for master in yaml['masters']:
+ for master in yaml['masters']
and type(yaml['masters']) is list
:
with open(source) as fd:
template = env.from_string(fd.read())
data = template.render(yaml=master)
with open(source) as fd:
template = env.from_string(fd.read())
data = template.render(yaml=master)
@@
-68,7
+68,7
@@
def create_rc_workers(source, target_suffix):
env.trim_blocks = True
env.lstrip_blocks = True
env.trim_blocks = True
env.lstrip_blocks = True
- if 'workers' in yaml:
+ if 'workers' in yaml
and type(yaml['workers']) is list
:
for master in yaml['workers']:
with open(source) as fd:
template = env.from_string(fd.read())
for master in yaml['workers']:
with open(source) as fd:
template = env.from_string(fd.read())