summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/connection/winrm.py
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-09-24 13:29:36 -0700
committerToshio Kuratomi <toshio@fedoraproject.org>2015-09-24 13:33:57 -0700
commita1428d6bed4517383549dbd14b99653462d4aefb (patch)
tree754dd86a4073752fcfb192dcb8fdaf52e35955b3 /lib/ansible/plugins/connection/winrm.py
parent95b371dd60d16f68daab74d408dc0fc03c5db5e0 (diff)
downloadansible-a1428d6bed4517383549dbd14b99653462d4aefb.tar.gz
Remove tmp as a parameter to the connection plugins
There doesn't appear to be anything that actually uses tmp_path in the connection plugins so we don't need to pass that in to exec_command. That change also means that we don't need to pass tmp_path around in many places in the action plugins any more. there may be more cleanup that can be done there as well (the action plugin's public run() method takes tmp as a keyword arg but that may not be necessary). As a sideeffect of this patch, some potential problems with chmod and the patch, assemble, copy, and template modules has been fixed (those modules called _remote_chmod() with the wrong order for their parameters. Removing the tmp parameter fixed them.)
Diffstat (limited to 'lib/ansible/plugins/connection/winrm.py')
-rw-r--r--lib/ansible/plugins/connection/winrm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/plugins/connection/winrm.py b/lib/ansible/plugins/connection/winrm.py
index 1242cfeaf5..89ce9296b0 100644
--- a/lib/ansible/plugins/connection/winrm.py
+++ b/lib/ansible/plugins/connection/winrm.py
@@ -172,8 +172,8 @@ class Connection(ConnectionBase):
self.protocol = self._winrm_connect()
return self
- def exec_command(self, cmd, tmp_path, in_data=None, sudoable=True):
- super(Connection, self).exec_command(cmd, tmp_path, in_data=in_data, sudoable=sudoable)
+ def exec_command(self, cmd, in_data=None, sudoable=True):
+ super(Connection, self).exec_command(cmd, in_data=in_data, sudoable=sudoable)
cmd_parts = shlex.split(to_bytes(cmd), posix=False)
cmd_parts = map(to_unicode, cmd_parts)
script = None