lib/utilities/xccdf/from_inspec.rb in inspec_tools-2.3.3 vs lib/utilities/xccdf/from_inspec.rb in inspec_tools-2.3.4
- old
+ new
@@ -32,9 +32,10 @@
c_data[c_id]['rid'] = control['tags']['rid'] || 'r_' + c_data[c_id]['gid']
c_data[c_id]['rversion'] = control['tags']['rversion'] if control['tags']['rversion'] # Optional attribute
c_data[c_id]['rweight'] = control['tags']['rweight'] if control['tags']['rweight'] # Optional attribute where N/A is not schema compliant
c_data[c_id]['stig_id'] = control['tags']['stig_id'] || DATA_NOT_FOUND_MESSAGE
c_data[c_id]['cci'] = control['tags']['cci'] if control['tags']['cci'] # Optional attribute
+ c_data[c_id]['legacy'] = control['tags']['legacy'] if control['tags']['legacy'] # Optional attribute
c_data[c_id]['nist'] = control['tags']['nist'] || ['unmapped']
c_data[c_id]['check'] = control['tags']['check'] || DATA_NOT_FOUND_MESSAGE
c_data[c_id]['checkref'] = control['tags']['checkref'] || DATA_NOT_FOUND_MESSAGE
c_data[c_id]['fix'] = control['tags']['fix'] || DATA_NOT_FOUND_MESSAGE
c_data[c_id]['fix_id'] = control['tags']['fix_id'] if control['tags']['fix_id'] # Optional attribute where N/A is not schema compliant