mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
allow bypassing executable setting
if you set executable to an empty string this avoids passing one to the command constructor fixes #14813
This commit is contained in:
@@ -621,7 +621,8 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
||||
if self._connection.allow_executable:
|
||||
if executable is None:
|
||||
executable = self._play_context.executable
|
||||
cmd = executable + ' -c ' + pipes.quote(cmd)
|
||||
if executable:
|
||||
cmd = executable + ' -c ' + pipes.quote(cmd)
|
||||
|
||||
display.debug("_low_level_execute_command(): executing: %s" % (cmd,))
|
||||
rc, stdout, stderr = self._connection.exec_command(cmd, in_data=in_data, sudoable=sudoable)
|
||||
|
||||
Reference in New Issue
Block a user