summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Pop <al3xpop@gmail.com>2015-06-25 13:21:26 -0700
committerSteven Murawski <steven.murawski@gmail.com>2015-10-21 11:13:02 -0500
commit1a4a6e6b4690ec6c051ce0b98d8d8648a7313f92 (patch)
treeee8109ee73454018aebc92c84296a5529c759ac6
parentdb2cd5e0732be6182616390d13e582335120d7cb (diff)
downloadchef-1a4a6e6b4690ec6c051ce0b98d8d8648a7313f92.tar.gz
print STDOUT from the powershell wrapper. fixes issue #3596
-rw-r--r--lib/chef/provider/powershell_script.rb3
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,