1
0
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:
Chris Meyers 2017-07-31 11:04:03 -04:00
parent 65a6b1e5ac
commit 3dea02ceac

View File

@ -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)