diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 00dd8011c7..f47347482f 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -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):