corrected original_file code path to use actually use data from original file

This commit is contained in:
Brian Coca 2015-06-13 00:10:17 -04:00
parent 491761f880
commit 8ee4c7266c

View file

@ -82,7 +82,7 @@ class ActionModule(ActionBase):
fnd = self._loader.path_dwim_relative(self._task._role._role_path, 'files', fnt)
of = task_vars.get('_original_file', None)
if not os.path.exists(fnd) and of is not None:
fnd = self._loader.path_dwim_relative(of, 'files', fnt)
fnd = self._loader.path_dwim_relative(of, 'files', of)
if os.path.exists(fnd):
source = fnd
found = True