From 66f13e0c70fcdfa9741e655a6423538d7d248ff8 Mon Sep 17 00:00:00 2001 From: Yannik Enss Date: Sun, 2 May 2021 14:46:28 +0200 Subject: [PATCH] compatibility --- check_osdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_osdb.py b/check_osdb.py index a3d2435..5ec15ce 100755 --- a/check_osdb.py +++ b/check_osdb.py @@ -18,7 +18,7 @@ if __name__ == "__main__": with open("/etc/os-release") as f: lines = f.read().splitlines() except Exception as e: - print(f"UNKNOWN - {e}") + print("UNKNOWN - " + str(e)) sys.exit(3) detected_os = None @@ -45,5 +45,5 @@ if __name__ == "__main__": sys.exit(0) if args.expect != detected_os: - print(f"CRITICAL - MISSMATCH DETECTED {detected_os} != {args.expect}") + print("CRITICAL - MISSMATCH DETECTED {detected_os} != {args.expect}".format(**globals())) sys.exit(2)