mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
pass through insights rule.ansible
This commit is contained in:
@@ -11,6 +11,7 @@ def filter_insights_api_response(json):
|
|||||||
'reports.[].rule.category',
|
'reports.[].rule.category',
|
||||||
'reports.[].rule.summary',
|
'reports.[].rule.summary',
|
||||||
'reports.[].rule.ansible_fix',
|
'reports.[].rule.ansible_fix',
|
||||||
|
'reports.[].rule.ansible',
|
||||||
'reports.[].maintenance_actions.[].maintenance_plan.name',
|
'reports.[].maintenance_actions.[].maintenance_plan.name',
|
||||||
'reports.[].maintenance_actions.[].maintenance_plan.maintenance_id',
|
'reports.[].maintenance_actions.[].maintenance_plan.maintenance_id',
|
||||||
'''
|
'''
|
||||||
@@ -25,7 +26,7 @@ def filter_insights_api_response(json):
|
|||||||
'maintenance_actions': []
|
'maintenance_actions': []
|
||||||
}
|
}
|
||||||
if 'rule' in rep:
|
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']:
|
if k in rep['rule']:
|
||||||
new_report['rule'][k] = rep['rule'][k]
|
new_report['rule'][k] = rep['rule'][k]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user