summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <454857+lamont-granquist@users.noreply.github.com>2022-01-24 18:27:58 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2022-01-24 18:30:47 -0800
commit742b44153c03590ffa31e25caa5176a131ed0940 (patch)
treeb48f66f3153dd8788522dd7cf502fe299c4548bb
parent5ce3f06038c8bcf2c047e10e8cb7c2472c17b62d (diff)
downloadchef-742b44153c03590ffa31e25caa5176a131ed0940.tar.gz
Update lib/chef/resource/lwrp_base.rb
Signed-off-by: Lance Albertson <lance@osuosl.org>
-rw-r--r--lib/chef/resource/lwrp_base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/lwrp_base.rb b/lib/chef/resource/lwrp_base.rb
index b27839d567..4cfbc956bb 100644
--- a/lib/chef/resource/lwrp_base.rb
+++ b/lib/chef/resource/lwrp_base.rb
@@ -54,7 +54,7 @@ class Chef
resource_class.run_context = run_context
resource_class.class_from_file(filename)
- if !resource_class.unified_mode && !deprecated_class(resource_class) && cookbook_name != "chef_client_updater"
+ if !resource_class.unified_mode && !deprecated_class(resource_class) && cookbook_name.to_s != "chef_client_updater"
Chef.deprecated :unified_mode, "The #{resource_class.resource_name} resource in the #{cookbook_name} cookbook should declare `unified_mode true`", filename
end