From 5ad29c9081fd847c53ebd75706c74a93f37b097e Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Mon, 14 Aug 2017 15:21:13 -0400 Subject: [PATCH] pass through insights rule.ansible --- awx/main/utils/insights.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/utils/insights.py b/awx/main/utils/insights.py index 5bca633b3f..dc4901e609 100644 --- a/awx/main/utils/insights.py +++ b/awx/main/utils/insights.py @@ -11,6 +11,7 @@ def filter_insights_api_response(json): 'reports.[].rule.category', 'reports.[].rule.summary', 'reports.[].rule.ansible_fix', + 'reports.[].rule.ansible', 'reports.[].maintenance_actions.[].maintenance_plan.name', 'reports.[].maintenance_actions.[].maintenance_plan.maintenance_id', ''' @@ -25,7 +26,7 @@ def filter_insights_api_response(json): 'maintenance_actions': [] } if 'rule' in rep: - for k in ['severity', 'description', 'category', 'summary', 'ansible_fix',]: + for k in ['severity', 'description', 'category', 'summary', 'ansible_fix', 'ansible',]: if k in rep['rule']: new_report['rule'][k] = rep['rule'][k]