Don't process shell commands as arrays.
This commit is contained in:
parent
86d2ee4b97
commit
6d841d120e
1 changed files with 2 additions and 1 deletions
|
@ -1019,7 +1019,8 @@ class AnsibleModule(object):
|
||||||
self.fail_json(rc=257, cmd=args, msg=msg)
|
self.fail_json(rc=257, cmd=args, msg=msg)
|
||||||
|
|
||||||
# expand things like $HOME and ~
|
# expand things like $HOME and ~
|
||||||
args = [ os.path.expandvars(os.path.expanduser(x)) for x in args ]
|
if not shell:
|
||||||
|
args = [ os.path.expandvars(os.path.expanduser(x)) for x in args ]
|
||||||
|
|
||||||
rc = 0
|
rc = 0
|
||||||
msg = None
|
msg = None
|
||||||
|
|
Loading…
Reference in a new issue