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)