mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
Alternately track listening handlers by uuid if no name is set
Fixes #17846
This commit is contained in:
parent
527d8307c1
commit
4f06a86161
5 changed files with 85 additions and 19 deletions
|
@ -147,7 +147,14 @@ class TaskQueueManager:
|
|||
for listener in listeners:
|
||||
if listener not in self._listening_handlers:
|
||||
self._listening_handlers[listener] = []
|
||||
self._listening_handlers[listener].append(handler.get_name())
|
||||
|
||||
# if the handler has a name, we append it to the list of listening
|
||||
# handlers, otherwise we use the uuid to avoid trampling on other
|
||||
# nameless listeners
|
||||
if handler.name:
|
||||
self._listening_handlers[listener].append(handler.get_name())
|
||||
else:
|
||||
self._listening_handlers[listener].append(handler._uuid)
|
||||
|
||||
def load_callbacks(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue