diff options
author | Matt Davis <mdavis@ansible.com> | 2016-10-23 23:44:55 -0700 |
---|---|---|
committer | Matt Davis <mdavis@ansible.com> | 2016-10-23 23:44:55 -0700 |
commit | af58bfbfe304727658c06e8f60cc5564ce8085a7 (patch) | |
tree | 1c0002342538cfb353e13cc4664923cb384690c4 | |
parent | 6f3e703ed4adee5c55053aca2ef830a1da10f4be (diff) | |
download | ansible-modules-core-af58bfbfe304727658c06e8f60cc5564ce8085a7.tar.gz |
fix win async tempdir deletion failure
-rw-r--r-- | windows/async_wrapper.ps1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/windows/async_wrapper.ps1 b/windows/async_wrapper.ps1 index 1ebd578f..6463ef3f 100644 --- a/windows/async_wrapper.ps1 +++ b/windows/async_wrapper.ps1 @@ -397,7 +397,7 @@ Function Start-Watchdog { $exec_cmd = [Ansible.Async.NativeProcessUtil]::SearchPath("powershell.exe") $exec_args = "`"$exec_cmd`" -NoProfile -ExecutionPolicy Bypass -EncodedCommand $encoded_command" - If(-not [Ansible.Async.NativeProcessUtil]::CreateProcess($exec_cmd, $exec_args, [IntPtr]::Zero, [IntPtr]::Zero, $true, $pstartup_flags, [IntPtr]::Zero, $PSScriptRoot, [ref]$si, [ref]$pi)) { + If(-not [Ansible.Async.NativeProcessUtil]::CreateProcess($exec_cmd, $exec_args, [IntPtr]::Zero, [IntPtr]::Zero, $true, $pstartup_flags, [IntPtr]::Zero, $env:windir, [ref]$si, [ref]$pi)) { #throw New-Object System.ComponentModel.Win32Exception throw "create bang $([System.Runtime.InteropServices.Marshal]::GetLastWin32Error())" } |