From 1fca56e51249931ded9060b73139827d87d79738 Mon Sep 17 00:00:00 2001 From: Austin Bozowski Date: Thu, 2 Jun 2022 01:46:24 +0000 Subject: [PATCH] Clean --- examples/chef/chef.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/chef/chef.py b/examples/chef/chef.py index cf037d079a8568..2645a8a3108457 100755 --- a/examples/chef/chef.py +++ b/examples/chef/chef.py @@ -296,23 +296,24 @@ def main(argv: Sequence[str]) -> None: zzz_dir = os.path.join(_CHEF_ZZZ_ROOT, device) device_zap_sha_file = os.path.join(zzz_dir, _CI_ZAP_MANIFEST_NAME) device_md5_file = os.path.join(zzz_dir, _CI_DEVICE_MANIFEST_NAME) + help_msg = f"{device}: {fix_instructions}" if not os.path.exists(device_zap_sha_file): - flush_print(f"ZAP MISSING {device}: {fix_instructions}") + flush_print(f"ZAP VERSION MISSING {help_msg}") exit(1) else: with open(device_zap_sha_file, "r", encoding="utf-8") as zap_file: output_cached_zap_sha = zap_file.read() if output_cached_zap_sha != current_zap: - flush_print(f"ZAP MISMATCH {device}: {fix_instructions}") + flush_print(f"ZAP VERSION MISMATCH {help_msg}") exit(1) if not os.path.exists(device_md5_file): - flush_print(f"ZAP MD5 MISSING {device}: {fix_instructions}") + flush_print(f"INPUT MD5 MISSING {help_msg}") exit(1) else: with open(device_md5_file, "r", encoding="utf-8") as md5_file: output_cached_md5 = md5_file.read() if output_cached_md5 != device_md5: - flush_print(f"ZAP MD5 MISMATCH {device}: {fix_instrucitons}") + flush_print(f"INPUT MD5 MISMATCH {help_msg}") exit(1) flush_print("Cached ZAP output is up to date!") exit(0)