From 3c87c44af5698992de222056c38f01d85d88bb7b Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Tue, 20 Oct 2015 13:49:52 -0400 Subject: [PATCH] Fixing bug in includes caused by 892d9b8 Fixes #12837 --- lib/ansible/playbook/included_file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/playbook/included_file.py b/lib/ansible/playbook/included_file.py index 7f953339477..af722134728 100644 --- a/lib/ansible/playbook/included_file.py +++ b/lib/ansible/playbook/included_file.py @@ -94,9 +94,9 @@ class IncludedFile: include_target = templar.template(include_result['include']) include_file = loader.path_dwim_relative(original_task._role._role_path, 'tasks', include_target) else: - include_file = loader.path_dwim(res._task.args.get('_raw_params')) + include_file = loader.path_dwim(include_result['include']) 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) inc_file = IncludedFile(include_file, include_variables, original_task)