mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 07:31:23 -07:00
now callback errors are not silent but warnings
This commit is contained in:
parent
e0632cb9a4
commit
a09f44210e
1 changed files with 4 additions and 1 deletions
|
@ -300,5 +300,8 @@ class TaskQueueManager:
|
||||||
]
|
]
|
||||||
for method in methods:
|
for method in methods:
|
||||||
if method is not None:
|
if method is not None:
|
||||||
method(*args, **kwargs)
|
try:
|
||||||
|
method(*args, **kwargs)
|
||||||
|
except Exception as e:
|
||||||
|
self._display.warning('Error when using %s: %s' % (method, str(e)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue