report correct file for callback

(cherry picked from commit d850992526)
This commit is contained in:
Brian Coca 2017-12-07 11:28:42 -05:00
parent 07021a36fe
commit fcd6731113
2 changed files with 2 additions and 1 deletions

View file

@ -19,6 +19,7 @@ Ansible Changes By Release
* nxos_vrf_interface fix when validating the interface (https://github.com/ansible/ansible/issues/33227) * nxos_vrf_interface fix when validating the interface (https://github.com/ansible/ansible/issues/33227)
* Fix for win_copy when sourcing files from an SMBv1 share * Fix for win_copy when sourcing files from an SMBv1 share
(https://github.com/ansible/ansible/pull/33576) (https://github.com/ansible/ansible/pull/33576)
* correctly report callback plugin file
<a id="2.4.2"></a> <a id="2.4.2"></a>

View file

@ -70,7 +70,7 @@ class CallbackBase(AnsiblePlugin):
name = getattr(self, 'CALLBACK_NAME', 'unnamed') name = getattr(self, 'CALLBACK_NAME', 'unnamed')
ctype = getattr(self, 'CALLBACK_TYPE', 'old') ctype = getattr(self, 'CALLBACK_TYPE', 'old')
version = getattr(self, 'CALLBACK_VERSION', '1.0') version = getattr(self, 'CALLBACK_VERSION', '1.0')
self._display.vvvv('Loading callback plugin %s of type %s, v%s from %s' % (name, ctype, version, __file__)) self._display.vvvv('Loading callback plugin %s of type %s, v%s from %s' % (name, ctype, version, sys.modules[self.__module__].__file__))
self.disabled = False self.disabled = False