diff --git a/lib/ansible/connection.py b/lib/ansible/connection.py index 21c056c0923..742556ec6e9 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