summaryrefslogtreecommitdiff
path: root/lib/chef/blacklist.rb
diff options
context:
space:
mode:
authorRobert Mullins <rmullins@secureworks.com>2017-03-07 09:16:59 -0500
committerRobert Mullins <rmullins@secureworks.com>2017-03-08 11:43:09 -0500
commit59d3b45c758b891455d04a18b94c7a188e32454a (patch)
treea9578b6ed19a2d185deb9c9ba4288e5df3d7ec03 /lib/chef/blacklist.rb
parent848fbf3c081dabe4a7f18a42597b1a68f68b6009 (diff)
downloadchef-59d3b45c758b891455d04a18b94c7a188e32454a.tar.gz
Improved attribute deletion process and fixed documentation referencing whitelsiting.
Signed-off-by: Robert Mullins <rmullins@secureworks.com>
Diffstat (limited to 'lib/chef/blacklist.rb')
-rw-r--r--lib/chef/blacklist.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/blacklist.rb b/lib/chef/blacklist.rb
index a60e0318cd..793944cc05 100644
--- a/lib/chef/blacklist.rb
+++ b/lib/chef/blacklist.rb
@@ -38,7 +38,7 @@ class Chef
end
# Walk the data according to the keys provided by the blacklisted item
- # and add the data to the whitelisting result.
+ # to get a reference to the item that will be removed.
def self.remove_data(data, item)
parts = to_array(item)
@@ -57,7 +57,7 @@ class Chef
return nil
end
- item_ref[parts[-1]] = nil
+ item_ref.del(parts[-1])
data
end