mirror of
https://github.com/ansible/awx.git
synced 2026-03-17 17:07:33 -02:30
use insights v3 api
This commit is contained in:
@@ -45,7 +45,7 @@ class ActionModule(ActionBase):
|
|||||||
session.auth = requests.auth.HTTPBasicAuth(username, password)
|
session.auth = requests.auth.HTTPBasicAuth(username, password)
|
||||||
headers = {'Content-Type': 'application/json'}
|
headers = {'Content-Type': 'application/json'}
|
||||||
|
|
||||||
url = '{}/r/insights/v1/maintenance?ansible=true'.format(insights_url)
|
url = '{}/r/insights/v3/maintenance?ansible=true'.format(insights_url)
|
||||||
|
|
||||||
res = session.get(url, headers=headers, timeout=120)
|
res = session.get(url, headers=headers, timeout=120)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user