Skip to content

Commit

Permalink
Reference and new print
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed May 27, 2022
1 parent 0499025 commit 5d2fa9d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ def load_cicd_config() -> Dict[str, Any]:
return config


def flush_print(to_print: str) -> None:
"""Prints and flushes stdout buffer"""
print(to_print, flush=True)


def main(argv: Sequence[str]) -> None:
check_python_version()
config = load_config()
Expand Down Expand Up @@ -255,7 +260,7 @@ def main(argv: Sequence[str]) -> None:
git add examples/chef/zzz_generated
git add examples/chef/cimanifes.json
Ensure you are running with the latest version of ZAP from master!"""
ci_manifest = generate_device_manifest(_DEVICE_FOLDER)
ci_manifest = generate_device_manifest()
with open(_CI_MANIFEST_FILE_NAME, "r", encoding="utf-8") as ci_manifest_file:
cached_manifest = json.loads(ci_manifest_file.read())
for device in ci_manifest:
Expand Down

0 comments on commit 5d2fa9d

Please sign in to comment.