mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-03-09 19:15:19 +01:00
Compare commits
4 commits
89e6eeaef0
...
4fc3d20479
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4fc3d20479 | ||
|
|
b228507b62 | ||
|
|
0341c9420f | ||
|
|
a3bedab1ba |
2 changed files with 2 additions and 5 deletions
|
|
@ -37,7 +37,7 @@ variables:
|
||||||
resources:
|
resources:
|
||||||
containers:
|
containers:
|
||||||
- container: default
|
- container: default
|
||||||
image: quay.io/ansible/azure-pipelines-test-container:main
|
image: quay.io/ansible/azure-pipelines-test-container:6.0.0
|
||||||
|
|
||||||
pool: Standard
|
pool: Standard
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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