We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc7ee92 commit a3bedabCopy full SHA for a3bedab
plugins/action/synchronize.py
@@ -48,10 +48,7 @@ def _get_absolute_path(self, path):
48
if ':' in path or path.startswith('/'):
49
return path
50
51
- if self._task._role is not None:
52
- path = self._loader.path_dwim_relative(self._task._role._role_path, 'files', path)
53
- else:
54
- path = self._loader.path_dwim_relative(self._loader.get_basedir(), 'files', path)
+ path = self._find_needle('files', path)
55
56
if original_path and original_path[-1] == '/' and path[-1] != '/':
57
# make sure the dwim'd path ends in a trailing "/"
0 commit comments