Skip to content

Commit

Permalink
More elegant CI fail
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed May 26, 2022
1 parent 51595e9 commit d7dd6a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ def main(argv: Sequence[str]) -> None:
cached_manifest = json.loads(ci_manifest_file.read())
for device in ci_manifest:
if device != "zap_commit":
if cached_manifest[device] != ci_manifest[device]:
try:
if cached_manifest[device] != ci_manifest[device]:
print("Cached files out of date. Please run chef with the flag --generate_zzz and commit")
exit(1)
except KeyError:
print("Cached files out of date. Please run chef with the flag --generate_zzz and commit")
exit(1)
if device == "zap_commit" and False:
Expand Down

0 comments on commit d7dd6a2

Please sign in to comment.