mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 23:46:05 -03:30
use insights v3 api
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user