From f32301f8748c9480b7c95e7057566dad47cf0197 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 9 Nov 2021 12:25:26 -0800 Subject: Uniq the requested_reporters to eliminate dup output Signed-off-by: Lamont Granquist --- lib/chef/compliance/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chef/compliance/runner.rb b/lib/chef/compliance/runner.rb index e378f6c8d7..ade35d4861 100644 --- a/lib/chef/compliance/runner.rb +++ b/lib/chef/compliance/runner.rb @@ -360,7 +360,7 @@ class Chef end def requested_reporters - Array(node["audit"]["reporter"]) + ["cli"] + (Array(node["audit"]["reporter"]) + ["cli"]).uniq end end end -- cgit v1.2.1