From c87591f76fb53619c6055071f8d3c6212d2cd437 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 16 Jun 2015 09:28:27 -0400 Subject: [PATCH] updated to new exec_command signature --- lib/ansible/plugins/connections/winrm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/connections/winrm.py b/lib/ansible/plugins/connections/winrm.py index 4da04b549a5..3fe769617e1 100644 --- a/lib/ansible/plugins/connections/winrm.py +++ b/lib/ansible/plugins/connections/winrm.py @@ -153,8 +153,8 @@ class Connection(ConnectionBase): self.protocol = self._winrm_connect() return self - def exec_command(self, cmd, tmp_path, executable='/bin/sh', in_data=None): - super(Connection, self).exec_command(cmd, tmp_path, executable=executable, in_data=in_data) + 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) cmd = to_bytes(cmd) cmd_parts = shlex.split(cmd, posix=False)