summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-11-01 13:07:20 -0700
committerGitHub <noreply@github.com>2018-11-01 13:07:20 -0700
commitb72cda620d1b3aac7081771dcb60e2213e48764a (patch)
tree0900ea1e981d2b5a1a35f4e67f919b66c8b71cb3
parent5eae96f53442372ddebd16f28e4ee89feb2231be (diff)
parenta59fe3b8e77cd6a349a35e2576c6cf32d867d4ed (diff)
downloadchef-b72cda620d1b3aac7081771dcb60e2213e48764a.tar.gz
Merge pull request #7787 from chef/ohai_name
Remove the deprecated ohai_name property from the ohai resource
-rw-r--r--lib/chef/resource/ohai.rb4
-rw-r--r--spec/unit/resource/ohai_spec.rb4
2 files changed, 0 insertions, 8 deletions
diff --git a/lib/chef/resource/ohai.rb b/lib/chef/resource/ohai.rb
index da221170c3..b5cd97cae0 100644
--- a/lib/chef/resource/ohai.rb
+++ b/lib/chef/resource/ohai.rb
@@ -27,10 +27,6 @@ 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,
- 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."
diff --git a/spec/unit/resource/ohai_spec.rb b/spec/unit/resource/ohai_spec.rb
index a18929da15..d0a8f7a77e 100644
--- a/spec/unit/resource/ohai_spec.rb
+++ b/spec/unit/resource/ohai_spec.rb
@@ -26,10 +26,6 @@ describe Chef::Resource::Ohai do
expect(resource.resource_name).to eql(:ohai)
end
- it "the ohai_name property is the name_property" do
- expect(resource.ohai_name).to eql("fakey_fakerton")
- end
-
it "sets the default action as :reload" do
expect(resource.action).to eql([:reload])
end