This commit is contained in:
parent
5a6bdef76b
commit
6acdc36317
1 changed files with 5 additions and 1 deletions
|
@ -171,7 +171,11 @@ class Play(Base, Taggable, Become):
|
||||||
Bare handlers outside of a block are given an implicit block.
|
Bare handlers outside of a block are given an implicit block.
|
||||||
'''
|
'''
|
||||||
try:
|
try:
|
||||||
return load_list_of_blocks(ds=ds, play=self, use_handlers=True, variable_manager=self._variable_manager, loader=self._loader)
|
return self._extend_value(
|
||||||
|
self.handlers,
|
||||||
|
load_list_of_blocks(ds=ds, play=self, use_handlers=True, variable_manager=self._variable_manager, loader=self._loader),
|
||||||
|
prepend=True
|
||||||
|
)
|
||||||
except AssertionError as e:
|
except AssertionError as e:
|
||||||
raise AnsibleParserError("A malformed block was encountered while loading handlers", obj=self._ds, orig_exc=e)
|
raise AnsibleParserError("A malformed block was encountered while loading handlers", obj=self._ds, orig_exc=e)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue