diff options
author | Julian C. Dunn <jdunn@chef.io> | 2015-04-28 23:30:03 -0400 |
---|---|---|
committer | Julian C. Dunn <jdunn@chef.io> | 2015-04-28 23:30:03 -0400 |
commit | a1e94b9df64a06eb1e416e146d027d4916b08a35 (patch) | |
tree | 020cb5b23b9b1850082262df3c2fce1e476e115b | |
parent | bcf9d67e912672110488049ae16712ea14a2f277 (diff) | |
download | chef-a1e94b9df64a06eb1e416e146d027d4916b08a35.tar.gz |
Remove experimental warning on audit mode.
-rw-r--r-- | lib/chef/application/client.rb | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb index a5faee9d35..bd19afa914 100644 --- a/lib/chef/application/client.rb +++ b/lib/chef/application/client.rb @@ -320,12 +320,6 @@ class Chef::Application::Client < Chef::Application unless expected_modes.include?(mode) Chef::Application.fatal!(unrecognized_audit_mode(mode)) end - - unless mode == :disabled - # This should be removed when audit-mode is enabled by default/no longer - # an experimental feature. - Chef::Log.warn(audit_mode_experimental_message) - end end end @@ -448,7 +442,7 @@ class Chef::Application::Client < Chef::Application "\nEnable chef-client interval runs by setting `:client_fork = true` in your config file or adding `--fork` to your command line options." end - def audit_mode_settings_explaination + def audit_mode_settings_explanation "\n* To enable audit mode after converge, use command line option `--audit-mode enabled` or set `:audit_mode = :enabled` in your config file." + "\n* To disable audit mode, use command line option `--audit-mode disabled` or set `:audit_mode = :disabled` in your config file." + "\n* To only run audit mode, use command line option `--audit-mode audit-only` or set `:audit_mode = :audit_only` in your config file." + @@ -456,18 +450,7 @@ class Chef::Application::Client < Chef::Application end def unrecognized_audit_mode(mode) - "Unrecognized setting #{mode} for audit mode." + audit_mode_settings_explaination - end - - def audit_mode_experimental_message - msg = if Chef::Config[:audit_mode] == :audit_only - "Chef-client has been configured to skip converge and only audit." - else - "Chef-client has been configured to audit after it converges." - end - msg += " Audit mode is an experimental feature currently under development. API changes may occur. Use at your own risk." - msg += audit_mode_settings_explaination - return msg + "Unrecognized setting #{mode} for audit mode." + audit_mode_settings_explanation end def fetch_recipe_tarball(url, path) |