mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 04:10:44 -03:30
Merge pull request #4671 from gamuniz/fix_204_insights_api
fixed insights api 204 errors Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
4f05955724
@ -89,7 +89,9 @@ class ActionModule(ActionBase):
|
||||
playbook_url = '{}/api/remediations/v1/remediations/{}/playbook'.format(
|
||||
insights_url, item['id'])
|
||||
res = session.get(playbook_url, timeout=120)
|
||||
if res.status_code != 200:
|
||||
if res.status_code == 204:
|
||||
continue
|
||||
elif res.status_code != 200:
|
||||
result['failed'] = True
|
||||
result['msg'] = (
|
||||
'Expected {} to return a status code of 200 but returned status '
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user