summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2015-05-15 11:44:37 -0700
committerBryan McLellan <btm@loftninjas.org>2015-05-27 14:16:27 -0400
commitae0cb8e756d8c72f1c698d959eb0039ac06262cd (patch)
tree78e8a52a273f040664ca293fbe6a9a0a383f3561
parent7db21a6a7745e4cc7b774ab49447e1fcb68fa1f6 (diff)
downloadchef-ae0cb8e756d8c72f1c698d959eb0039ac06262cd.tar.gz
Add CLI option --audit-as-warning
-rw-r--r--lib/chef/application/client.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb
index 551e26e303..43097fc12d 100644
--- a/lib/chef/application/client.rb
+++ b/lib/chef/application/client.rb
@@ -253,6 +253,11 @@ class Chef::Application::Client < Chef::Application
:description => "Enable audit-mode with `enabled`. Disable audit-mode with `disabled`. Skip converge and only perform audits with `audit-only`",
:proc => lambda { |mo| mo.gsub("-", "_").to_sym }
+ option :audit_as_warning,
+ :long => "--audit-as-warning",
+ :description => "Interpret failed controls as warnings.",
+ :boolean => true
+
option :minimal_ohai,
:long => "--minimal-ohai",
:description => "Only run the bare minimum ohai plugins chef needs to function",