From e4fc326e0145197351c03d22e7dc9205374f2921 Mon Sep 17 00:00:00 2001 From: Furrure <71794171+Furrure@users.noreply.github.com> Date: Mon, 9 Aug 2021 11:25:57 -0400 Subject: [PATCH] Update csv.rb Changed to detect if it is an array, rather than checking if it is a string. --- lib/inspec_tools/csv.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/inspec_tools/csv.rb b/lib/inspec_tools/csv.rb index d00626a..b1ef09a 100644 --- a/lib/inspec_tools/csv.rb +++ b/lib/inspec_tools/csv.rb @@ -74,10 +74,10 @@ def parse_controls(prefix) control['tags']['nist'] = nist unless nist.nil? || nist.include?(nil) @mapping['control.tags'].each do |tag| if tag.first == 'cci' - if cci_number.is_a? String - control['tags'][tag.first] = [cci_number] - else + if cci_number.is_a? Array control['tags'][tag.first] = cci_number + else + control['tags'][tag.first] = [cci_number] end next end