mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 22:18:01 -03:30
Merge pull request #5063 from HunterNyan/devel
Fixed bug with python check
Reviewed-by: Shane McDonald <me@shanemcd.com>
https://github.com/shanemcd
This commit is contained in:
commit
cafac2338d
@ -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