summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-09-21 08:53:19 -0700
committerGitHub <noreply@github.com>2018-09-21 08:53:19 -0700
commit2b0dfa041b0b02dfd0183a1b2819c4b1097f3359 (patch)
tree9d5f69a748b917fb84e3e6a45bf86fc9af212cd3
parentf53a1a5c85a86b8cc8f45b8e844646f21fb73eac (diff)
parent4aedb2b38edcbd2d66d0d69085bad65b002f22ae (diff)
downloadchef-2b0dfa041b0b02dfd0183a1b2819c4b1097f3359.tar.gz
Merge pull request #7667 from chef/deprecate
Deprecate ohai resource's ohai_name property
-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