mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 15:21:13 +03:00
use insights v3 api
This commit is contained in:
parent
65a6b1e5ac
commit
3dea02ceac
@ -45,7 +45,7 @@ class ActionModule(ActionBase):
|
||||
session.auth = requests.auth.HTTPBasicAuth(username, password)
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user