From f4b3defcbf165b7d494c48f052c360f6f4a47cec Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Sun, 15 Sep 2013 20:19:38 -0500 Subject: [PATCH] Set sudo in accelerate commands correctly Fixes #4111 --- lib/ansible/runner/connection_plugins/accelerate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/connection_plugins/accelerate.py b/lib/ansible/runner/connection_plugins/accelerate.py index f835a7dee8..e39d0d715b 100644 --- a/lib/ansible/runner/connection_plugins/accelerate.py +++ b/lib/ansible/runner/connection_plugins/accelerate.py @@ -141,7 +141,7 @@ class Connection(object): if executable == "": executable = constants.DEFAULT_EXECUTABLE - if self.runner.sudo or sudoable and sudo_user: + if self.runner.sudo and sudoable and sudo_user: cmd, prompt = utils.make_sudo_cmd(sudo_user, executable, cmd) vvv("EXEC COMMAND %s" % cmd)