mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Revert "Rejoin args list into a string for run_command when using an unsafe shell"
This reverts commit 4273cb2d8e
.
This commit is contained in:
parent
4273cb2d8e
commit
b1a37dcc08
1 changed files with 1 additions and 3 deletions
|
@ -1009,9 +1009,7 @@ class AnsibleModule(object):
|
|||
|
||||
shell = False
|
||||
if isinstance(args, list):
|
||||
if use_unsafe_shell:
|
||||
args = " ".join([pipes.quote(x) for x in args])
|
||||
shell = True
|
||||
pass
|
||||
elif isinstance(args, basestring) and use_unsafe_shell:
|
||||
shell = True
|
||||
elif isinstance(args, basestring):
|
||||
|
|
Loading…
Reference in a new issue