mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Expand tilde in paths in file module
This commit is contained in:
parent
7e849ac7e0
commit
fe70ed94e3
1 changed files with 2 additions and 0 deletions
|
@ -222,6 +222,8 @@ class AnsibleModule(object):
|
|||
path = params.get('path', params.get('dest', None))
|
||||
if path is None:
|
||||
return {}
|
||||
else:
|
||||
path = os.path.expanduser(path)
|
||||
|
||||
mode = params.get('mode', None)
|
||||
owner = params.get('owner', None)
|
||||
|
|
Loading…
Reference in a new issue