mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 02:47:36 -02: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:
@@ -89,7 +89,9 @@ class ActionModule(ActionBase):
|
|||||||
playbook_url = '{}/api/remediations/v1/remediations/{}/playbook'.format(
|
playbook_url = '{}/api/remediations/v1/remediations/{}/playbook'.format(
|
||||||
insights_url, item['id'])
|
insights_url, item['id'])
|
||||||
res = session.get(playbook_url, timeout=120)
|
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['failed'] = True
|
||||||
result['msg'] = (
|
result['msg'] = (
|
||||||
'Expected {} to return a status code of 200 but returned status '
|
'Expected {} to return a status code of 200 but returned status '
|
||||||
|
|||||||
Reference in New Issue
Block a user