Skip to content

Commit

Permalink
TODO and err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed May 26, 2022
1 parent b2e5cb3 commit d103893
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,13 @@ def main(argv: Sequence[str]) -> None:
cached_manifest = json.loads(ci_manifest_file.read())
for device in ci_manifest:
if device != "zap_commit":
# TODO write the hash into folders and validate folders
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")
print("Cached files out of date. Please run chef with the flag --generate_zzz and commit /examples/chef/zzz_generated and /examples/chef/cimanifes.json")
exit(1)
if device == "zap_commit" and False:
# Disabled for now, ci_manifest above created without include_zap_submod, fails in CI env.
Expand Down

0 comments on commit d103893

Please sign in to comment.