diff options
author | Alex Pop <al3xpop@gmail.com> | 2015-06-25 13:21:26 -0700 |
---|---|---|
committer | Steven Murawski <steven.murawski@gmail.com> | 2015-10-21 11:13:02 -0500 |
commit | 1a4a6e6b4690ec6c051ce0b98d8d8648a7313f92 (patch) | |
tree | ee8109ee73454018aebc92c84296a5529c759ac6 /lib/chef/provider | |
parent | db2cd5e0732be6182616390d13e582335120d7cb (diff) | |
download | chef-1a4a6e6b4690ec6c051ce0b98d8d8648a7313f92.tar.gz |
print STDOUT from the powershell wrapper. fixes issue #3596
Diffstat (limited to 'lib/chef/provider')
-rw-r--r-- | lib/chef/provider/powershell_script.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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, |