mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
Fixed bug with python check
This commit is contained in:
parent
11edd43af3
commit
e5dfc62dce
@ -426,7 +426,7 @@ data:
|
||||
conn.request('GET', '/api/healthchecks/node', headers={'Authorization': 'Basic %s' % authsecret})
|
||||
r1 = conn.getresponse()
|
||||
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)
|
||||
body = r1.read()
|
||||
if body != '{"status":"ok"}':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user