mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Refactor HostInsights
for better reuse of the error handling of the Insights API calls.
This commit is contained in:
@@ -81,7 +81,7 @@ class ActionModule(ActionBase):
|
||||
|
||||
url = res.json()['links']['next'] # will be None if we're on the last page
|
||||
|
||||
for item in res.json()['remediations']:
|
||||
for item in res.json()['data']:
|
||||
playbook_url = '{}/api/remediations/v1/remediations/{}/playbook'.format(
|
||||
insights_url, item['id'])
|
||||
res = session.get(playbook_url, timeout=120)
|
||||
|
||||
Reference in New Issue
Block a user