From 49aa91c6591f8ee287f702db23643caf49dbd936 Mon Sep 17 00:00:00 2001 From: Phil Dibowitz Date: Wed, 10 Dec 2014 18:13:48 -0800 Subject: Fix attribute whitelisting False-y values are still there. --- lib/chef/whitelist.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/chef/whitelist.rb b/lib/chef/whitelist.rb index ad52215f11..86c229d22c 100644 --- a/lib/chef/whitelist.rb +++ b/lib/chef/whitelist.rb @@ -57,7 +57,9 @@ class Chef all_data = all_data[part] end - unless all_data[parts[-1]] + # Note: You can't do all_data[parts[-1]] here because the value + # may be false-y + unless all_data.key?(parts[-1]) Chef::Log.warn("Could not find whitelist attribute #{item}.") return nil end -- cgit v1.2.1