summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-09-20 10:59:45 -0700
committerTim Smith <tsmith@chef.io>2018-09-20 10:59:45 -0700
commit4aedb2b38edcbd2d66d0d69085bad65b002f22ae (patch)
treea29e8476e44c60183a2b30ddf3c26c126d5fe0ac
parentc2d168e31a33c37299e25b24fa57851b97340a65 (diff)
downloadchef-4aedb2b38edcbd2d66d0d69085bad65b002f22ae.tar.gz
Deprecate ohai resource's ohai_name propertydeprecate
This isn't actually used anywhere in the resource and there's no point. It reload's plugins based on the plugin property. We should kill this thing off and reduce the complexity a tiny bit. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/ohai.rb8
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