Don't process shell commands as arrays.

pull/6444/head
Michael DeHaan 11 years ago
parent 86d2ee4b97
commit 6d841d120e

@ -1019,6 +1019,7 @@ class AnsibleModule(object):
self.fail_json(rc=257, cmd=args, msg=msg)
# expand things like $HOME and ~
if not shell:
args = [ os.path.expandvars(os.path.expanduser(x)) for x in args ]
rc = 0

Loading…
Cancel
Save