summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2014-12-15 15:47:22 -0800
committerBryan McLellan <btm@loftninjas.org>2014-12-16 13:40:29 -0500
commit032cfdcc0eb1f7ad634d3b766ff31f75ca165168 (patch)
tree013c3136b44157a9646c2b9649ef2ec94a65a753
parente811e4c4f0e60c6a2dcf73fd65ef5cef37bc2a74 (diff)
downloadchef-032cfdcc0eb1f7ad634d3b766ff31f75ca165168.tar.gz
Fix broken powershell_script resource
The powershell commands were not being guarded by our code that checks for for exit codes
-rw-r--r--lib/chef/provider/powershell_script.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/provider/powershell_script.rb b/lib/chef/provider/powershell_script.rb
index 0e76cd1656..97f77ca491 100644
--- a/lib/chef/provider/powershell_script.rb
+++ b/lib/chef/provider/powershell_script.rb
@@ -87,6 +87,10 @@ EOH
interpreter_flags
end
+
+ def code
+ @code
+ end
end
end
end