From 61c236be9e24d0046db901df764fac4517b014c4 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Wed, 18 Jun 2014 16:33:01 -0500 Subject: [PATCH] Fix for creating temp dir with older powershell versions. --- lib/ansible/runner/shell_plugins/powershell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/shell_plugins/powershell.py b/lib/ansible/runner/shell_plugins/powershell.py index 2fa6e8a08e..5685960e8b 100644 --- a/lib/ansible/runner/shell_plugins/powershell.py +++ b/lib/ansible/runner/shell_plugins/powershell.py @@ -81,7 +81,7 @@ class ShellModule(object): def mkdtemp(self, basefile, system=False, mode=None): basefile = _escape(basefile) # FIXME: Support system temp path! - return _encode_script('''(New-Item -Type Directory -Path $env:temp -Name "%s").FullName;''' % basefile) + return _encode_script('''(New-Item -Type Directory -Path $env:temp -Name "%s").FullName | Write-Host -Separator '';''' % basefile) def md5(self, path): path = _escape(path)