Merge "Add cis_code field to JSON-parsed XCCDF results"
diff --git a/_modules/oscap/utils.py b/_modules/oscap/utils.py
index 973d514..d81825d 100644
--- a/_modules/oscap/utils.py
+++ b/_modules/oscap/utils.py
@@ -70,6 +70,7 @@
rules[rule['id']] = {
'title': rule.title.cdata,
'severity': rule['severity'],
+ 'ident': rule.ident.cdata,
'description': rule.description.cdata}
return rules
@@ -86,6 +87,7 @@
'severity': result['severity'],
'weight': result['weight'],
'title': rules[result['idref']]['title'],
+ 'cis_code': rules[result['idref']]['ident'],
'description': rules[result['idref']]['title']
})