From 9e0fd313d7c91682774a71a0ec0c807415c24850 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 25 Jan 2017 13:19:10 -0500 Subject: [PATCH] fix powershell mkdtemp --- lib/ansible/plugins/shell/powershell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/shell/powershell.py b/lib/ansible/plugins/shell/powershell.py index 6440a866084..18333f4d9bd 100644 --- a/lib/ansible/plugins/shell/powershell.py +++ b/lib/ansible/plugins/shell/powershell.py @@ -108,9 +108,9 @@ class ShellModule(object): else: return self._encode_script('''Remove-Item "%s" -Force;''' % path) - def mkdtemp(self, basefile, system=False, mode=None): + def mkdtemp(self, basefile, system=False, mode=None, tmpdir=None): basefile = self._escape(self._unquote(basefile)) - # FIXME: Support system temp path! + # FIXME: Support system temp path and passed in tmpdir! return self._encode_script('''(New-Item -Type Directory -Path $env:temp -Name "%s").FullName | Write-Host -Separator '';''' % basefile) def expand_user(self, user_home_path):