summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-11-06 14:29:34 -0800
committerGitHub <noreply@github.com>2018-11-06 14:29:34 -0800
commitb46f0553ef6495ad81196d3065441600fd087762 (patch)
tree19b74d30f82a774735fcc54593286da599aed91c
parent22f2409cb88efa325fe1083f171bfa6aee5582dc (diff)
parent02b5f242997eab2c0ed614f306757e458ae7e6eb (diff)
downloadchef-b46f0553ef6495ad81196d3065441600fd087762.tar.gz
Merge pull request #7880 from chef/inspector_v2
resource inspector: don't convert nil to "nil" in default values
-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