From 5d2fa9d3bf16b146c3a6e79f8200c5f93a965541 Mon Sep 17 00:00:00 2001 From: Austin Bozowski Date: Fri, 27 May 2022 21:31:11 +0000 Subject: [PATCH] Reference and new print --- examples/chef/chef.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/chef/chef.py b/examples/chef/chef.py index cf3ef49ae0e85b..1c1f6504c56eba 100755 --- a/examples/chef/chef.py +++ b/examples/chef/chef.py @@ -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() @@ -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: