diff --git a/docs/changelog.rst b/docs/changelog.rst index 50e58d31..1bc87342 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -23,6 +23,9 @@ To avail of fixes in an unreleased version, please download a ZIP file * :gh:issue:`756` ssh connections with `check_host_keys='accept'` would timeout, when using recent OpenSSH client versions. +* :gh:issue:`758` fix initilialisation of callback plugins in test suite, to + to address a `KeyError` in + :method:`ansible.plugins.callback.CallbackBase.v2_runner_on_start` v0.2.9 (2019-11-02) diff --git a/tests/ansible/lib/callback/nice_stdout.py b/tests/ansible/lib/callback/nice_stdout.py index cfd2cc18..7c90a499 100644 --- a/tests/ansible/lib/callback/nice_stdout.py +++ b/tests/ansible/lib/callback/nice_stdout.py @@ -20,6 +20,8 @@ DefaultModule = callback_loader.get('default', class_only=True) DOCUMENTATION = ''' callback: nice_stdout type: stdout + extends_documentation_fragment: + - default_callback options: check_mode_markers: name: Show markers when running in check mode @@ -74,6 +76,10 @@ def printi(tio, obj, key=None, indent=0): class CallbackModule(DefaultModule): + CALLBACK_VERSION = 2.0 + CALLBACK_TYPE = 'stdout' + CALLBACK_NAME = 'nice_stdout' + def _dump_results(self, result, *args, **kwargs): try: tio = io.StringIO() diff --git a/tests/ansible/lib/callback/profile_tasks.py b/tests/ansible/lib/callback/profile_tasks.py index d54ea0a5..89d956ac 100644 --- a/tests/ansible/lib/callback/profile_tasks.py +++ b/tests/ansible/lib/callback/profile_tasks.py @@ -37,6 +37,7 @@ class CallbackModule(CallbackBase): A plugin for timing tasks """ def __init__(self): + super(CallbackModule, self).__init__() self.stats = {} self.current = None