Fixing bug in includes caused by 892d9b8

Fixes #12837
This commit is contained in:
James Cammarata 2015-10-20 13:49:52 -04:00
parent 31ebafcbdd
commit 3c87c44af5

View file

@ -94,9 +94,9 @@ class IncludedFile:
include_target = templar.template(include_result['include']) include_target = templar.template(include_result['include'])
include_file = loader.path_dwim_relative(original_task._role._role_path, 'tasks', include_target) include_file = loader.path_dwim_relative(original_task._role._role_path, 'tasks', include_target)
else: else:
include_file = loader.path_dwim(res._task.args.get('_raw_params')) include_file = loader.path_dwim(include_result['include'])
else: else:
include_file = loader.path_dwim(res._task.args.get('_raw_params')) include_file = loader.path_dwim(include_result['include'])
include_file = templar.template(include_file) include_file = templar.template(include_file)
inc_file = IncludedFile(include_file, include_variables, original_task) inc_file = IncludedFile(include_file, include_variables, original_task)