Skip to content

Commit

Permalink
Merge pull request #49 from drewkerrigan/fix-ssl
Browse files Browse the repository at this point in the history
Fix --insecure option
Markus Opolka authored Jan 28, 2020
2 parents 9c0c59d + 209aaef commit 2541223
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion check_http_json.py
Original file line number Diff line number Diff line change
@@ -683,6 +683,8 @@ def test_separator(self):
if __name__ == "__main__":
args = parseArgs()
nagios = NagiosHelper()
context = None

if args.version:
print('Version: %s - Date: %s' % (__version__, __version_date__))
exit(0)
@@ -753,7 +755,7 @@ def test_separator(self):
else:
response = urllib2.urlopen(req, context=context)

json_data = response.read()
json_data = response.read()

except HTTPError as e:
nagios.append_unknown(" HTTPError[%s], url:%s" % (str(e.code), url))

0 comments on commit 2541223

Please sign in to comment.