mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Correctly compile handler blocks for dependent roles
This commit is contained in:
parent
0b16580567
commit
d0d9be30d5
2 changed files with 6 additions and 5 deletions
|
@ -288,7 +288,12 @@ class Role(Base, Become, Conditional, Taggable):
|
|||
return self._task_blocks[:]
|
||||
|
||||
def get_handler_blocks(self):
|
||||
return self._handler_blocks[:]
|
||||
block_list = []
|
||||
for dep in self.get_direct_dependencies():
|
||||
dep_blocks = dep.get_handler_blocks()
|
||||
block_list.extend(dep_blocks)
|
||||
block_list.extend(self._handler_blocks)
|
||||
return block_list
|
||||
|
||||
def has_run(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue