summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2014-12-15 15:47:22 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2014-12-15 15:47:22 -0800
commit49958b668bb5cfd4f4c5020b36bf246d67dacc41 (patch)
treea3fe1896f4f852d41e9a8c3562ae69a2ddf84369
parent3f178af707ac7112428c0f7d5e84d09d018c28ae (diff)
downloadchef-49958b668bb5cfd4f4c5020b36bf246d67dacc41.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