diff --git a/lib/ansible/connection.py b/lib/ansible/connection.py index 48b6173089..b5d44f0623 100644 --- a/lib/ansible/connection.py +++ b/lib/ansible/connection.py @@ -188,7 +188,7 @@ class LocalConnection(object): return self - def exec_command(self, cmd, tmp_path, sudoable=False): + def exec_command(self, cmd, tmp_path,sudo_user,sudoable=False): ''' run a command on the local host ''' if self.runner.sudo and sudoable: cmd = "sudo -s %s" % cmd