summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-10-29 17:14:02 -0700
committerTim Smith <tsmith@chef.io>2018-10-29 17:15:14 -0700
commit03e9f433c2d0e110ac893efd5ce9b378493b980c (patch)
tree3ad83eb48dc11ee6866260d4f6ae909406680115
parent848c85802809372ed3f62abb68c53bf42281ce24 (diff)
downloadchef-03e9f433c2d0e110ac893efd5ce9b378493b980c.tar.gz
Fix inspector to properly handle defaults that are symbolsinspect_symbols
We need to .inspect these so the default value is a symbol not the string version of the symbol. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource_inspector.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource_inspector.rb b/lib/chef/resource_inspector.rb
index 1a49f05b72..1888f9a8bc 100644
--- a/lib/chef/resource_inspector.rb
+++ b/lib/chef/resource_inspector.rb
@@ -31,7 +31,7 @@ module ResourceInspector
# code for the resource ourselves and just no
"lazy default"
else
- default
+ default.inspect # inspect properly returns symbols
end
end