compatibility
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user