From 02b5f242997eab2c0ed614f306757e458ae7e6eb Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 6 Nov 2018 11:57:05 -0800 Subject: resource inspector: don't convert nil to "nil" in default values Only inspec the value if it isn't nil. Signed-off-by: Tim Smith --- lib/chef/resource_inspector.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1