mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00: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:
@@ -1009,9 +1009,7 @@ class AnsibleModule(object):
|
|||||||
|
|
||||||
shell = False
|
shell = False
|
||||||
if isinstance(args, list):
|
if isinstance(args, list):
|
||||||
if use_unsafe_shell:
|
pass
|
||||||
args = " ".join([pipes.quote(x) for x in args])
|
|
||||||
shell = True
|
|
||||||
elif isinstance(args, basestring) and use_unsafe_shell:
|
elif isinstance(args, basestring) and use_unsafe_shell:
|
||||||
shell = True
|
shell = True
|
||||||
elif isinstance(args, basestring):
|
elif isinstance(args, basestring):
|
||||||
|
|||||||
Reference in New Issue
Block a user