diff options
author | Adam Edwards <adamed@opscode.com> | 2014-06-14 21:18:31 -0700 |
---|---|---|
committer | Adam Edwards <adamed@opscode.com> | 2014-10-23 10:43:04 -0700 |
commit | 61aa58a9572f747902c5a775817bf6b9b076d098 (patch) | |
tree | 71e332a6519b20cf1e232a3642136e48ad4e59d3 /lib | |
parent | b070d4796bb9b573c22ec6e094fea7e60d323718 (diff) | |
download | chef-61aa58a9572f747902c5a775817bf6b9b076d098.tar.gz |
Debug logging should show transformed script code for easier debugging of powershell_script
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/provider/powershell_script.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/provider/powershell_script.rb b/lib/chef/provider/powershell_script.rb index 967b2d822b..852fe1436f 100644 --- a/lib/chef/provider/powershell_script.rb +++ b/lib/chef/provider/powershell_script.rb @@ -51,6 +51,8 @@ $chefscriptresult = { }.invokereturnasis() if ($interpolatedexitcode -and $chefscriptresult.gettype().name -eq 'boolean') { exit [int32](!$chefscriptresult) } else { exit 0 } EOH + Chef::Log.debug("powershell_script provider called with script code:\n\n#{code}\n") + Chef::Log.debug("powershell_script provider will execute transformed code:\n\n#{@code}\n") end public |