diff options
author | Serdar Sutay <serdar@opscode.com> | 2014-11-20 22:30:24 -0800 |
---|---|---|
committer | Serdar Sutay <serdar@opscode.com> | 2014-11-20 22:30:24 -0800 |
commit | 0385742d677f24c10e741acd4e6f42451ae101f0 (patch) | |
tree | e6f44a97d8584001b870daf0e201f1a4afcf2f88 /lib/chef/application/client.rb | |
parent | 80767d09852523018c7d738a7edfb6c66c1b436c (diff) | |
download | chef-sersut/basic-audit-tests.tar.gz |
More meaningful audit_mode configuration values.sersut/basic-audit-tests
Diffstat (limited to 'lib/chef/application/client.rb')
-rw-r--r-- | lib/chef/application/client.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb index 5463f504bc..6ca674d287 100644 --- a/lib/chef/application/client.rb +++ b/lib/chef/application/client.rb @@ -241,7 +241,15 @@ class Chef::Application::Client < Chef::Application option :audit_mode, :long => "--[no-]audit-mode", :description => "If not specified, run converge and audit phase. If true, run only audit phase. If false, run only converge phase.", - :boolean => true + :boolean => true, + :proc => lambda { |set| + # Convert boolean to config options of :audit_only or :disabled + if set + :audit_only + else + :disabled + end + } IMMEDIATE_RUN_SIGNAL = "1".freeze |