summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-11-06 11:57:05 -0800
committerTim Smith <tsmith@chef.io>2018-11-06 11:57:05 -0800
commit02b5f242997eab2c0ed614f306757e458ae7e6eb (patch)
tree305c4e2c3f8474bc4b223b98340b90ca12c41901
parentaf1d8fa79d2a2233134a4fc4049845fee87f9530 (diff)
downloadchef-inspector_v2.tar.gz
resource inspector: don't convert nil to "nil" in default valuesinspector_v2
Only inspec the value if it isn't nil. 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 1888f9a8bc..55a4d8e65d 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.inspect # inspect properly returns symbols
+ default.inspect unless default.nil? # inspect properly returns symbols
end
end