From 1a4a6e6b4690ec6c051ce0b98d8d8648a7313f92 Mon Sep 17 00:00:00 2001 From: Alex Pop Date: Thu, 25 Jun 2015 13:21:26 -0700 Subject: print STDOUT from the powershell wrapper. fixes issue #3596 --- lib/chef/provider/powershell_script.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/chef') diff --git a/lib/chef/provider/powershell_script.rb b/lib/chef/provider/powershell_script.rb index cea9a45dad..e04efb6b42 100644 --- a/lib/chef/provider/powershell_script.rb +++ b/lib/chef/provider/powershell_script.rb @@ -199,6 +199,9 @@ elseif ( $LASTEXITCODE -ne $null -and $LASTEXITCODE -ne 0 ) $exitstatus = $LASTEXITCODE } +# Print STDOUT for the script execution +Write-Output $chefscriptresult + # If this script is launched with -File, the process exit # status of PowerShell.exe will be $exitstatus. If it was # launched with -Command, it will be 0 if $exitstatus was 0, -- cgit v1.2.1