Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Clinton Wolfe <[email protected]>
  • Loading branch information
clintoncwolfe committed Dec 20, 2019
1 parent 1f7bf94 commit 81a5b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/default/handler/audit_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def get_opts(reporter, quiet, attributes)
output = quiet ? ::File::NULL : $stdout
Chef::Log.debug "Reporter is [#{reporter}]"
# You can pass nil (no waiver files), one file, or an array. InSpec expects an Array regardless.
waivers = node['audit']['waiver_file'].nil? ? [] : Array(node['audit']['waiver_file'])
waivers = Array(node['audit']['waiver_file'])
opts = {
'report' => true,
'format' => reporter, # For compatibility with older versions of inspec. TODO: Remove this line from Q2 2019
Expand Down

0 comments on commit 81a5b1c

Please sign in to comment.