summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2011-10-18 17:02:24 -0700
committerJohn Keiser <jkeiser@opscode.com>2011-10-18 17:02:24 -0700
commit9ad5d754a2870db829a1a14c0d32589c1101c571 (patch)
tree46d62ef5a90d66d0debc10ecea28a791db98c259
parentde352404109a0c6d94c727b9ef850330f0bb077f (diff)
downloadchef-9ad5d754a2870db829a1a14c0d32589c1101c571.tar.gz
Fix typo in environment support for Windows shell_out
-rw-r--r--chef/lib/chef/shell_out/windows.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/lib/chef/shell_out/windows.rb b/chef/lib/chef/shell_out/windows.rb
index a0ee80efae..1d3a7aa3a0 100644
--- a/chef/lib/chef/shell_out/windows.rb
+++ b/chef/lib/chef/shell_out/windows.rb
@@ -155,7 +155,7 @@ class Chef
end
environment.each_pair do |k,v|
- if v != nil
+ if v == nil
result.delete(k)
else
result[k] = v