mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Don't process shell commands as arrays.
This commit is contained in:
@@ -1019,7 +1019,8 @@ class AnsibleModule(object):
|
||||
self.fail_json(rc=257, cmd=args, msg=msg)
|
||||
|
||||
# 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
|
||||
msg = None
|
||||
|
||||
Reference in New Issue
Block a user