summaryrefslogtreecommitdiff
path: root/lib/chef/client.rb
diff options
context:
space:
mode:
authorSerdar Sutay <serdar@opscode.com>2014-11-20 17:56:14 -0800
committertyler-ball <tyleraball@gmail.com>2014-12-17 18:52:03 -0800
commitb6804bbe2e8fd90a958db3685da92b3112c29536 (patch)
tree7f8e6f7b34033377919f3a01fa14c300aee16e55 /lib/chef/client.rb
parentd223f2480cecb211a8c54edbb6ff4e7a46f9be9b (diff)
downloadchef-b6804bbe2e8fd90a958db3685da92b3112c29536.tar.gz
Instructions on running audit mode examples.
Diffstat (limited to 'lib/chef/client.rb')
-rw-r--r--lib/chef/client.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb
index 9e1d2dc207..aa0d6722fe 100644
--- a/lib/chef/client.rb
+++ b/lib/chef/client.rb
@@ -441,16 +441,12 @@ class Chef
run_context = setup_run_context
- unless Chef::Config[:audit_mode] == true
+ if Chef::Config[:audit_mode] != :audit_only
converge_error = converge_and_save(run_context)
- else
- Chef::Log.debug("Skipping converge. Chef is configured to run audits only.")
end
- unless Chef::Config[:audit_mode] == false
+ if Chef::Config[:audit_mode] != :disabled
audit_error = run_audits(run_context)
- else
- Chef::Log.debug("Skipping audits. Chef is configured to converge the node only.")
end
if converge_error || audit_error