mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Default to not using an executable
For compatibility with older releases as well as avoiding things like action: raw executable= show status to communicate with devices that don't have sh.
This commit is contained in:
@@ -29,7 +29,7 @@ class ActionModule(object):
|
||||
self.runner = runner
|
||||
|
||||
def run(self, conn, tmp, module_name, module_args, inject):
|
||||
executable = None
|
||||
executable = ''
|
||||
# From library/command, keep in sync
|
||||
r = re.compile(r'(^|\s)(executable)=(?P<quote>[\'"])?(.*?)(?(quote)(?<!\\)(?P=quote))((?<!\\)\s|$)')
|
||||
for m in r.finditer(module_args):
|
||||
|
||||
Reference in New Issue
Block a user