Skip to content

Commit

Permalink
Flatten with block
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed Jun 2, 2022
1 parent 02f3e78 commit 1623e4b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ def generate_device_manifest(
def load_cicd_config() -> Dict[str, Any]:
with open(_CICD_CONFIG_FILE_NAME) as config_file:
config = json.loads(config_file.read())
for platform_name, platform_config in config.items():
has_build_dir = "build_dir" in platform_config
has_plat_label = "platform_label" in platform_config
if not has_build_dir or not has_plat_label:
flush_print(f"{platform_name} CICD config missing build_dir or platform_label")
exit(1)
for platform_name, platform_config in config.items():
has_build_dir = "build_dir" in platform_config
has_plat_label = "platform_label" in platform_config
if not has_build_dir or not has_plat_label:
flush_print(f"{platform_name} CICD config missing build_dir or platform_label")
exit(1)
return config


Expand Down

0 comments on commit 1623e4b

Please sign in to comment.