Make include_x inheritance more congruent with docs (#32769)

* draft making tags congruent with include_x

* remove ability to 'inline tags' for new inc keys

* generic inheritance

* fix typo

* pepe
This commit is contained in:
Brian Coca 2017-11-30 17:16:10 -05:00 committed by James Cammarata
commit 8e6ebae8bd
6 changed files with 17 additions and 5 deletions

View file

@ -50,6 +50,8 @@ class TaskInclude(Task):
@staticmethod
def load(data, block=None, role=None, task_include=None, variable_manager=None, loader=None):
t = TaskInclude(block=block, role=role, task_include=task_include)
if t.action == 'include_task':
t._inheritable = False
return t.load_data(data, variable_manager=variable_manager, loader=loader)
def copy(self, exclude_parent=False, exclude_tasks=False):