diff --git a/lib/inspec_tools/csv.rb b/lib/inspec_tools/csv.rb index 84f1f0e..b1ef09a 100644 --- a/lib/inspec_tools/csv.rb +++ b/lib/inspec_tools/csv.rb @@ -74,7 +74,11 @@ def parse_controls(prefix) control['tags']['nist'] = nist unless nist.nil? || nist.include?(nil) @mapping['control.tags'].each do |tag| if tag.first == 'cci' - control['tags'][tag.first] = cci_number + if cci_number.is_a? Array + control['tags'][tag.first] = cci_number + else + control['tags'][tag.first] = [cci_number] + end next end control['tags'][tag.first] = row[tag.last] unless row[tag.last].nil?