Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yaml callback plugin deprecation warning about DefaultCallback in v2.10 #565

Closed
ktdreyer opened this issue Jun 22, 2020 · 2 comments · Fixed by ansible/ansible#70228
Closed
Assignees
Labels
bug This issue/PR relates to a bug has_pr needs_triage python3

Comments

@ktdreyer
Copy link
Contributor

SUMMARY

The yaml callback plugin prints a deprecation warning about DefaultCallback.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

yaml

ANSIBLE VERSION
ansible 2.10.0b1
  config file = /home/kdreyer/.ansible.cfg
  configured module search path = ['/home/kdreyer/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /tmp/top/venv/lib/python3.7/site-packages/ansible
  executable location = /tmp/top/venv/bin/ansible
  python version = 3.7.7 (default, Jun  4 2020, 15:43:14) [GCC 9.3.1 20200408 (Red Hat 9.3.1-2)]
CONFIGURATION
DEFAULT_STDOUT_CALLBACK(/home/kdreyer/.ansible.cfg) = yaml
OS / ENVIRONMENT

Fedora 31, testing 2.10.0 beta 1.

STEPS TO REPRODUCE
  1. Install Ansible 2.10.0b1 from PyPI
  2. Install the community.general collection to get the yaml callback plugin:
    ansible-galaxy collection install community.general
  3. Ensure the yaml callback plugin is enabled in ~/.ansible.cfg, like so:
[defaults]
stdout_callback = yaml
EXPECTED RESULTS

Ansible runs with no deprecation warnings.

ACTUAL RESULTS

Ansible shows a deprecation warning:

'ansible_collections.community.general.plugins.callback.yaml' is subclassing DefaultCallback without the corresponding doc_fragment. This feature will be removed from ansible-base in version 2.14. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

@ktdreyer ktdreyer changed the title yaml callback plugin deprecation warning about DefaultCallback yaml callback plugin deprecation warning about DefaultCallback in v2.10 Jun 22, 2020
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@Akasurde Akasurde self-assigned this Jun 23, 2020
Akasurde added a commit to Akasurde/ansible that referenced this issue Jun 23, 2020
Callback plugin dense, yaml, and debug implement 'check_mode_markers'
so moving documentation to default callback doc_fragments.

Fixes: ansible-collections/community.general#565

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
@Akasurde
Copy link
Member

resolved_by_pr ansible/ansible#70228

bcoca pushed a commit to bcoca/ansible that referenced this issue Jun 25, 2020
…#70228)

Callback plugin dense, yaml, and debug implement 'check_mode_markers'
so moving documentation to default callback doc_fragments.

Fixes: ansible-collections/community.general#565

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
nitzmahone pushed a commit to ansible/ansible that referenced this issue Jul 30, 2020
…#70989)

Callback plugin dense, yaml, and debug implement 'check_mode_markers'
so moving documentation to default callback doc_fragments.

Fixes: ansible-collections/community.general#565

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 4885eba)

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug has_pr needs_triage python3
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants