diff options
author | Tim Smith <tsmith@chef.io> | 2018-09-21 08:53:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-21 08:53:19 -0700 |
commit | 2b0dfa041b0b02dfd0183a1b2819c4b1097f3359 (patch) | |
tree | 9d5f69a748b917fb84e3e6a45bf86fc9af212cd3 | |
parent | f53a1a5c85a86b8cc8f45b8e844646f21fb73eac (diff) | |
parent | 4aedb2b38edcbd2d66d0d69085bad65b002f22ae (diff) | |
download | chef-2b0dfa041b0b02dfd0183a1b2819c4b1097f3359.tar.gz |
Merge pull request #7667 from chef/deprecate
Deprecate ohai resource's ohai_name property
-rw-r--r-- | lib/chef/resource/ohai.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/chef/resource/ohai.rb b/lib/chef/resource/ohai.rb index 6cd60de9f4..da221170c3 100644 --- a/lib/chef/resource/ohai.rb +++ b/lib/chef/resource/ohai.rb @@ -27,8 +27,12 @@ class Chef description "Use the ohai resource to reload the Ohai configuration on a node. This allows recipes that change system attributes (like a recipe that adds a user) to refer to those attributes later on during the chef-client run." - property :ohai_name, name_property: true, introduced: "12.17" - property :plugin, String + property :ohai_name, + deprecated: true, + name_property: true, introduced: "12.17" + + property :plugin, String, + description: "The name of an Ohai plugin to be reloaded. If this property is not specified, the chef-client will reload all plugins." default_action :reload allowed_actions :reload |