diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-10-20 11:54:38 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-10-23 18:06:05 -0700 |
commit | ba9474e68dadea5099c935d2d56025b6df0ec54f (patch) | |
tree | fce90ad4770dbb32f9462fe3b6ffa41e356a4946 /lib/chef/provider/env.rb | |
parent | afd0deaf1c0ccb830b9aaf389298b40b3a6f6264 (diff) | |
download | chef-ba9474e68dadea5099c935d2d56025b6df0ec54f.tar.gz |
delete_element should return false if the key needs to be deleted
Diffstat (limited to 'lib/chef/provider/env.rb')
-rw-r--r-- | lib/chef/provider/env.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/env.rb b/lib/chef/provider/env.rb index 3e7b0398d7..324371254d 100644 --- a/lib/chef/provider/env.rb +++ b/lib/chef/provider/env.rb @@ -98,7 +98,7 @@ class Chef else new_value = current_values.select { |item| - new_values.include?(item) + not new_values.include?(item) }.join(@new_resource.delim) if new_value.empty? |