You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitogen/docs
Alex Willmer 79b4c0f815 tests: Fix AttributeError in callback plugins used by test suite
CALLBACK_VERSION et al are documented as required in
https://docs.ansible.com/ansible/2.10/dev_guide/developing_plugins.html#callback-plugins.
The need for document_fragment is noted in
cfa8075537/lib/ansible/plugins/callback/default.py (L28-L32)

Fixes #758

This addresses the following error, seen while running
`ansible_tests.py`.

```
TASK [Gathering Facts gather_timeout=10, gather_subset=['all']]
****************
task path:
/home/alex/src/mitogen/tests/ansible/regression/issue_109__target_has_old_ansible_installed.yml:4
[WARNING]: Failure using method (v2_runner_on_start) in callback plugin
(<ansible.plugins.callback.nice_stdout.CallbackModule object at
0x7f76b3dad090>): 'show_per_host_start'
Callback Exception:
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py",
line 372, in send_callback
    method(*new_args, **kwargs)
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/default.py",
line 240, in v2_runner_on_start
    if self.get_option('show_per_host_start'):
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/__init__.py",
line 91, in get_option
    return self._plugin_options[k]
Callback Exception:
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py",
line 372, in send_callback
    method(*new_args, **kwargs)
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/default.py",
line 240, in v2_runner_on_start
    if self.get_option('show_per_host_start'):
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/__init__.py",
line 91, in get_option
    return self._plugin_options[k]
[task 339882] 00:00:08.172036 D ansible_mitogen.affinity: CPU mask for
WorkerProcess: 0x000004
Callback Exception:
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py",
line 372, in send_callback
    method(*new_args, **kwargs)
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/default.py",
line 240, in v2_runner_on_start
    if self.get_option('show_per_host_start'):
File
"/home/alex/src/mitogen/.tox/py27-ansible2.10/lib/python2.7/site-packages/ansible/plugins/callback/__init__.py",
line 91, in get_option
    return self._plugin_options[k]
```
4 years ago
..
_static docs: remove a little more top margin wastage 6 years ago
_templates Merge devel/290 @ 79b979ec8544ef5d8620c64068d4a42fabf50415 5 years ago
images issue #505: docs: add new detail graph for one scenario. 6 years ago
.gitignore docs: fix intensely annoying _prefix, 2 years later. 7 years ago
Makefile docs: get rid of autobuild remnant 6 years ago
ansible_detailed.rst Fix typo in Ansible documentation 4 years ago
api.rst issue #595: add buildah to docs and changelog. 5 years ago
changelog.rst tests: Fix AttributeError in callback plugins used by test suite 4 years ago
conf.py docs: lots more changelog concision 5 years ago
contributors.rst docs: add new contributor entry 6 years ago
domainrefs.py docs: add domainrefs plugin to make link aliases everywhere \o/ 5 years ago
examples.rst docs: fix example up so it's closer to real code 6 years ago
getting_started.rst Fix for sample in doc 5 years ago
howitworks.rst docs: tweaks to better explain changelog race 5 years ago
index.rst docs: add domainrefs plugin to make link aliases everywhere \o/ 5 years ago
internals.rst Merge devel/290 @ 79b979ec8544ef5d8620c64068d4a42fabf50415 5 years ago
pickle-substitutes.ods docs: First round of Pickle-likes survey 7 years ago
requirements.txt docs: make Sphinx install soft fail on Python 2. 5 years ago
services.rst issue #589: ensure real FileService/PushFileService are in the docs 6 years ago
toc.rst docs: reorder chapters 5 years ago