mirror of
https://github.com/ansible/awx.git
synced 2026-03-08 05:01:09 -02:30
Fixed bug with python check
This commit is contained in:
@@ -426,7 +426,7 @@ data:
|
|||||||
conn.request('GET', '/api/healthchecks/node', headers={'Authorization': 'Basic %s' % authsecret})
|
conn.request('GET', '/api/healthchecks/node', headers={'Authorization': 'Basic %s' % authsecret})
|
||||||
r1 = conn.getresponse()
|
r1 = conn.getresponse()
|
||||||
if r1.status != 200:
|
if r1.status != 200:
|
||||||
sys.stderr.write('Received http error %i\n' % (r1.status))
|
sys.stderr.write('Received http error %i\\n' % (r1.status))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
body = r1.read()
|
body = r1.read()
|
||||||
if body != '{"status":"ok"}':
|
if body != '{"status":"ok"}':
|
||||||
|
|||||||
Reference in New Issue
Block a user