From 3dea02ceac77e5c22873f2c4497e6965e1959ca9 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Mon, 31 Jul 2017 11:04:03 -0400 Subject: [PATCH] use insights v3 api --- awx/playbooks/action_plugins/insights.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/playbooks/action_plugins/insights.py b/awx/playbooks/action_plugins/insights.py index 5e4cb6649f..61835bd654 100644 --- a/awx/playbooks/action_plugins/insights.py +++ b/awx/playbooks/action_plugins/insights.py @@ -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)