1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

call expanduser for src and dest

This commit is contained in:
muffl0n 2014-02-19 21:30:53 +01:00
parent 0bf51a6df1
commit 5f0e882d01

View file

@ -46,8 +46,8 @@ class ActionModule(object):
if complex_args: if complex_args:
options.update(complex_args) options.update(complex_args)
options.update(utils.parse_kv(module_args)) options.update(utils.parse_kv(module_args))
source = options.get('src', None) source = os.path.expanduser(options.get('src', None))
dest = options.get('dest', None) dest = os.path.expanduser(options.get('dest', None))
copy = utils.boolean(options.get('copy', 'yes')) copy = utils.boolean(options.get('copy', 'yes'))
if source is None or dest is None: if source is None or dest is None: