summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2014-10-22 09:30:19 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2014-10-23 18:06:06 -0700
commit421cabc9d82bfddeb1b18660f03e7de2be676272 (patch)
treef630343314682b039359edaed3d6074a07b5f440
parent9c531a840ae86dbdd90565ed1c3bd3b93be47146 (diff)
downloadchef-421cabc9d82bfddeb1b18660f03e7de2be676272.tar.gz
-rw-r--r--lib/chef/provider/env.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/env.rb b/lib/chef/provider/env.rb
index fc28a94f78..600cac1e6b 100644
--- a/lib/chef/provider/env.rb
+++ b/lib/chef/provider/env.rb
@@ -94,7 +94,7 @@ class Chef
def delete_element
return false unless @new_resource.delim #no delim: delete the key
needs_delete = new_values.any? { |v| current_values.include?(v) }
- if not needs_delete
+ if !needs_delete
Chef::Log.debug("#{@new_resource} element '#{@new_resource.value}' does not exist")
return true #do not delete the key
else