mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
f93ef96a08
commit
f4b3defcbf
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue