summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-12-11 12:40:56 -0800
committerPete Higgins <pete@peterhiggins.org>2020-12-11 12:44:08 -0800
commit3495764911ccac898f599baa22cbcd1f9224013a (patch)
tree8fbe5de46c27e6aecc8ead80fc2c5239fcb1c553
parentae73cc4b2cdeb419a919509e20a0529b95e22134 (diff)
downloadchef-3495764911ccac898f599baa22cbcd1f9224013a.tar.gz
Fix inaccurate log message.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
-rw-r--r--lib/chef/compliance/runner.rb2
-rw-r--r--spec/unit/compliance/runner_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/compliance/runner.rb b/lib/chef/compliance/runner.rb
index 0de8fd174e..978dc33b32 100644
--- a/lib/chef/compliance/runner.rb
+++ b/lib/chef/compliance/runner.rb
@@ -239,7 +239,7 @@ class Chef
when "audit-enforcer"
Chef::Compliance::Reporter::ComplianceEnforcer.new
else
- logger.warn "'#{reporter_type}' is not a supported #{Inspec::Dist::PRODUCT_NAME} report collector"
+ logger.warn "'#{reporter_type}' is not a supported reporter for Compliance Phase."
nil
end
end
diff --git a/spec/unit/compliance/runner_spec.rb b/spec/unit/compliance/runner_spec.rb
index d9472e8b08..e1ca1c5d3a 100644
--- a/spec/unit/compliance/runner_spec.rb
+++ b/spec/unit/compliance/runner_spec.rb
@@ -134,7 +134,7 @@ describe Chef::Compliance::Runner do
end
it "returns nil for unexpected reporter value" do
- expect(logger).to receive(:warn).with("'tacos' is not a supported Chef InSpec report collector")
+ expect(logger).to receive(:warn).with("'tacos' is not a supported reporter for Chef Infra Client's Compliance Phase")
expect(runner.reporter("tacos")).to be_nil
end