From 65c3bd2a25d0c5636b1e2c1ab32fc542a9e2e551 Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Tue, 28 Jan 2020 10:41:29 +0100 Subject: [PATCH] Set default context variable to -k --insecure option --- check_http_json.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/check_http_json.py b/check_http_json.py index 94f4fac..55ec739 100755 --- a/check_http_json.py +++ b/check_http_json.py @@ -683,6 +683,8 @@ if __name__ == "__main__" and len(sys.argv) >= 2 and sys.argv[1] == 'UnitTest': if __name__ == "__main__": args = parseArgs() nagios = NagiosHelper() + context = None + if args.version: print('Version: %s - Date: %s' % (__version__, __version_date__)) exit(0)