summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-04-10 13:27:30 -0700
committerGitHub <noreply@github.com>2020-04-10 13:27:30 -0700
commit7610efe78189fde045c4b2554277799db664d12e (patch)
tree367035064074c3251113af1392a1bb9de169dfe6
parent79aef073a21af23822c6e45fdcae17ea9fec0c64 (diff)
downloadchef-7610efe78189fde045c4b2554277799db664d12e.tar.gz
Update lib/chef/resource/plist.rb
Signed-off-by: Tim Smith <tsmith@chef.io> Co-Authored-By: pete higgins <pete@peterhiggins.org>
-rw-r--r--lib/chef/resource/plist.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/plist.rb b/lib/chef/resource/plist.rb
index d5f9c1f028..19367f22a6 100644
--- a/lib/chef/resource/plist.rb
+++ b/lib/chef/resource/plist.rb
@@ -177,7 +177,7 @@ class Chef
when "add"
type_to_commandline_string(value)
when "set"
- if value.class == Hash
+ if value.is_a?(Hash)
sep = ":"
value.map { |k, v| "#{k} #{v}" }
else
@@ -205,4 +205,4 @@ class Chef
end
end
end
-end \ No newline at end of file
+end