summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLamont Granquist <454857+lamont-granquist@users.noreply.github.com>2022-02-16 15:07:17 -0800
committerGitHub <noreply@github.com>2022-02-16 15:07:17 -0800
commit99d5ae6f54f7317b027dca408d753a7d6c92dd1b (patch)
tree26e168a62abae12de462bceb9e19e0faece93b3b /lib
parent78f2aee5392ec60e53bff3ea0ae7973049759deb (diff)
parentb0f9c2bdfa91667ecaea9eb2caac4f13c9da7785 (diff)
downloadchef-99d5ae6f54f7317b027dca408d753a7d6c92dd1b.tar.gz
Merge pull request #12595 from collinmcneese/cmcneese/12589
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/compliance/default_attributes.rb2
-rw-r--r--lib/chef/compliance/reporter/compliance_enforcer.rb2
-rw-r--r--lib/chef/compliance/runner.rb4
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/compliance/default_attributes.rb b/lib/chef/compliance/default_attributes.rb
index fc30716205..52cda4dc30 100644
--- a/lib/chef/compliance/default_attributes.rb
+++ b/lib/chef/compliance/default_attributes.rb
@@ -27,7 +27,7 @@ class Chef
# Controls what is done with the resulting report after the Chef InSpec run.
# Accepts a single string value or an array of multiple values.
- # Accepted values: 'chef-server-automate', 'chef-automate', 'json-file', 'audit-enforcer', 'cli'
+ # Accepted values: 'chef-server-automate', 'chef-automate', 'json-file', 'audit-enforcer', 'compliance-enforcer', 'cli'
"reporter" => nil,
# Controls if Chef InSpec profiles should be fetched from Chef Automate or Chef Infra Server
diff --git a/lib/chef/compliance/reporter/compliance_enforcer.rb b/lib/chef/compliance/reporter/compliance_enforcer.rb
index 47b3a4d2df..d682208821 100644
--- a/lib/chef/compliance/reporter/compliance_enforcer.rb
+++ b/lib/chef/compliance/reporter/compliance_enforcer.rb
@@ -1,7 +1,7 @@
class Chef
module Compliance
module Reporter
- class AuditEnforcer
+ class ComplianceEnforcer
class ControlFailure < StandardError; end
def send_report(report)
diff --git a/lib/chef/compliance/runner.rb b/lib/chef/compliance/runner.rb
index f6d3e89b15..59b60112e7 100644
--- a/lib/chef/compliance/runner.rb
+++ b/lib/chef/compliance/runner.rb
@@ -7,7 +7,7 @@ class Chef
class Runner < EventDispatch::Base
extend Forwardable
- SUPPORTED_REPORTERS = %w{chef-automate chef-server-automate json-file audit-enforcer cli}.freeze
+ SUPPORTED_REPORTERS = %w{chef-automate chef-server-automate json-file audit-enforcer compliance-enforcer cli}.freeze
SUPPORTED_FETCHERS = %w{chef-automate chef-server}.freeze
attr_accessor :run_id
@@ -300,7 +300,7 @@ class Chef
require_relative "reporter/json_file"
path = node.dig("audit", "json_file", "location")
Chef::Compliance::Reporter::JsonFile.new(file: path)
- when "audit-enforcer"
+ when "audit-enforcer", "compliance-enforcer"
require_relative "reporter/compliance_enforcer"
Chef::Compliance::Reporter::ComplianceEnforcer.new
when "cli"