From 4f049ab74eee0f18bd52c936d55fa91ca63228e4 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Wed, 13 Sep 2017 17:35:12 +1000 Subject: [PATCH] fixed become to show the stdout and stderr streams instead of the StreamReader (#30254) (cherry picked from commit 77b2aca5a2657e16ab6a236b43a8122164e3b574) --- lib/ansible/plugins/shell/powershell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/shell/powershell.py b/lib/ansible/plugins/shell/powershell.py index 24119c9ad66..df2aeeac768 100644 --- a/lib/ansible/plugins/shell/powershell.py +++ b/lib/ansible/plugins/shell/powershell.py @@ -693,7 +693,7 @@ Function Run($payload) { $str_stderr } Else { - Throw "failed, rc was $rc, stderr was $stderr, stdout was $stdout" + Throw "failed, rc was $rc, stderr was $str_stderr, stdout was $str_stdout" } }