mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-19 14:50:21 -07:00
Force command action to not be executed by the shell unless specifically enabled
This commit is contained in:
parent
9730157525
commit
ba0fec4f42
19 changed files with 427 additions and 245 deletions
|
@ -136,7 +136,7 @@ def main():
|
|||
args = shlex.split(args)
|
||||
startd = datetime.datetime.now()
|
||||
|
||||
rc, out, err = module.run_command(args, executable=executable)
|
||||
rc, out, err = module.run_command(args, executable=executable, use_unsafe_shell=shell)
|
||||
|
||||
endd = datetime.datetime.now()
|
||||
delta = endd - startd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue