Debian Codegraph @

ansible_collections/community/general/plugins/callback/null.py

raw
1 # Copyright (c) 2017 Ansible Project
2 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
3 # SPDX-License-Identifier: GPL-3.0-or-later
4
5 # Make coding more python3-ish
6 from __future__ import annotations
7
8 DOCUMENTATION = r"""
9 author: Unknown (!UNKNOWN)
10 name: 'null'
11 type: stdout
12 requirements:
13 - set as main display callback
14 short_description: Do not display stuff to screen
15 description:
16 - This callback prevents outputting events to screen.
17 """
18
19 from ansible.plugins.callback import CallbackBase
20
21
22 class CallbackModule(CallbackBase):
23 """
24 This callback won't print messages to stdout when new callback events are received.
25 """
26
27 CALLBACK_VERSION = 2.0
28 CALLBACK_TYPE = "stdout"
29 CALLBACK_NAME = "community.general.null"