Expand the source path in the action plugin when not using a remote source

Fixes #6209
This commit is contained in:
James Cammarata 2014-02-27 12:50:35 -06:00
parent c11e2100e0
commit df9de6ea71

View file

@ -67,6 +67,9 @@ class ActionModule(object):
return self.runner._execute_module(conn, tmp, 'assemble', module_args, inject=inject, complex_args=complex_args)
elif '_original_file' in inject:
src = utils.path_dwim_relative(inject['_original_file'], 'files', src, self.runner.basedir)
else:
# the source is local, so expand it here
src = os.path.expanduser(src)
# Does all work assembling the file
path = self._assemble_from_fragments(src, delimiter)