From 98f5534d9c08950ca60afecf4e1725459431d551 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 16 Jun 2015 09:12:42 -0400 Subject: [PATCH] adaptaed to new exec signature should fix #11275 --- lib/ansible/plugins/connections/paramiko_ssh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/connections/paramiko_ssh.py b/lib/ansible/plugins/connections/paramiko_ssh.py index 5a5259c5fcc..457b1946d37 100644 --- a/lib/ansible/plugins/connections/paramiko_ssh.py +++ b/lib/ansible/plugins/connections/paramiko_ssh.py @@ -189,10 +189,10 @@ class Connection(ConnectionBase): return ssh - def exec_command(self, cmd, tmp_path, executable='/bin/sh', in_data=None): + def exec_command(self, cmd, tmp_path, in_data=None, sudoable=True): ''' run a command on the remote host ''' - super(Connection, self).exec_command(cmd, tmp_path, executable=executable, in_data=in_data) + super(Connection, self).exec_command(cmd, tmp_path, in_data=in_data, sudoable=sudoable) if in_data: raise AnsibleError("Internal Error: this module does not support optimized module pipelining")