summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2015-05-15 11:44:37 -0700
committerClaire McQuin <claire@getchef.com>2015-05-21 10:02:33 -0700
commitc70b1a573b41d578501f7ba36b3bb32688128a6e (patch)
treeb64687af0882126cf072e353e9c187dffcaf7006
parent22012a63dc02b3173e5d8b704501cb5f69dd0f7c (diff)
downloadchef-c70b1a573b41d578501f7ba36b3bb32688128a6e.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 a5faee9d35..4cb0f73793 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",