mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
added callback fallback to v1 methods for backwards compat with existing callbacks
This commit is contained in:
@@ -279,4 +279,8 @@ class TaskQueueManager:
|
||||
try:
|
||||
method(*args, **kwargs)
|
||||
except Exception as e:
|
||||
self._display.warning('Error when using %s: %s' % (method, str(e)))
|
||||
try:
|
||||
v1_method = method.replace('v2_','')
|
||||
v1_method(*args, **kwargs)
|
||||
except Exception:
|
||||
self._display.warning('Error when using %s: %s' % (method, str(e)))
|
||||
|
||||
Reference in New Issue
Block a user