use correct object in error
fixes #40453
(cherry picked from commit 0339c8037b)
This commit is contained in:
2
changelogs/fragments/fix_cb_ref.yml
Normal file
2
changelogs/fragments/fix_cb_ref.yml
Normal file
@ -0,0 +1,2 @@
|
||||
- bufgix:
|
||||
- correctly reference the callback ojbect when giving an error https://github.com/ansible/ansible/pull/40453
|
||||
@ -210,7 +210,7 @@ class TaskQueueManager:
|
||||
except AttributeError:
|
||||
display.deprecated("%s callback, does not support setting 'options', it will work for now, "
|
||||
" but this will be required in the future and should be updated, "
|
||||
" see the 2.4 porting guide for details." % self.callback_obj._load_name, version="2.9")
|
||||
" see the 2.4 porting guide for details." % callback_obj._load_name, version="2.9")
|
||||
self._callback_plugins.append(callback_obj)
|
||||
|
||||
self._callbacks_loaded = True
|
||||
|
||||
Reference in New Issue
Block a user