X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=scripts%2Fupdate_bios_settings.py;h=ecd510b8e4a3a860bdffabac3d85dee1e2de9efe;hb=b48e1f8d382a40d3af92ed94ef4c83dc2df31ead;hp=f15c07bad2d05c715e09baf4dec692da50f3fcaf;hpb=a3163ede73e8cbda4d6ffa5b14f5e2abcbb9e585;p=yaml_builds.git diff --git a/scripts/update_bios_settings.py b/scripts/update_bios_settings.py index f15c07b..ecd510b 100644 --- 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 - 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) @@ -68,7 +68,7 @@ def create_rc_workers(source, target_suffix): 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())