diff options
author | Tim Smith <tsmith@chef.io> | 2021-04-23 13:20:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 13:20:59 -0700 |
commit | a9892763be0c82a28169eaf6478d080989681027 (patch) | |
tree | 2371dfacda5ce49151c66f3bd2beb1fa8c5c9475 /lib | |
parent | f6da5e72fb1caef4d33a2888766f435d155982a6 (diff) | |
parent | f7e5ba559ab15de087e72d6bf149232b56f195df (diff) | |
download | chef-a9892763be0c82a28169eaf6478d080989681027.tar.gz |
Merge pull request #11443 from chef/mp/add-compliance-phase-run-markers
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/compliance/runner.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/chef/compliance/runner.rb b/lib/chef/compliance/runner.rb index 6bc134d08e..3f754e8259 100644 --- a/lib/chef/compliance/runner.rb +++ b/lib/chef/compliance/runner.rb @@ -57,7 +57,7 @@ class Chef def run_completed(_node, _run_status) return unless enabled? - logger.info("#{self.class}##{__method__}: enabling Compliance Phase") + logger.debug("#{self.class}##{__method__}: enabling Compliance Phase") report end @@ -68,7 +68,7 @@ class Chef # because we're still not configured correctly. return unless enabled? && @validation_passed - logger.info("#{self.class}##{__method__}: enabling Compliance Phase") + logger.debug("#{self.class}##{__method__}: enabling Compliance Phase") report end @@ -94,7 +94,9 @@ class Chef end end - def report(report = generate_report) + def report(report = nil) + logger.info "Starting Chef Infra Compliance Phase" + report ||= generate_report # This is invoked at report-time instead of with the normal validations at node loaded, # because we want to ensure that it is visible in the output - and not lost in back-scroll. warn_for_deprecated_config_values! @@ -108,6 +110,7 @@ class Chef logger.info "Reporting to #{reporter_type}" @reporters[reporter_type].send_report(report) end + logger.info "Chef Infra Compliance Phase Complete" end def inspec_opts |