mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 23:25:28 +01:00
Compare commits
2 commits
5a2c22489a
...
dbcde85917
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dbcde85917 | ||
|
|
a3bedab1ba |
1 changed files with 1 additions and 4 deletions
|
|
@ -48,10 +48,7 @@ class ActionModule(ActionBase):
|
||||||
if ':' in path or path.startswith('/'):
|
if ':' in path or path.startswith('/'):
|
||||||
return path
|
return path
|
||||||
|
|
||||||
if self._task._role is not None:
|
path = self._find_needle('files', path)
|
||||||
path = self._loader.path_dwim_relative(self._task._role._role_path, 'files', path)
|
|
||||||
else:
|
|
||||||
path = self._loader.path_dwim_relative(self._loader.get_basedir(), 'files', path)
|
|
||||||
|
|
||||||
if original_path and original_path[-1] == '/' and path[-1] != '/':
|
if original_path and original_path[-1] == '/' and path[-1] != '/':
|
||||||
# make sure the dwim'd path ends in a trailing "/"
|
# make sure the dwim'd path ends in a trailing "/"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue