Correct callback plugins for Ansible 2.10+
This change adds a DOCUMENTATION constant and a get_options method to the tripleo_dense callback plugin which resolves deprecation warnings and errors caused by the updated ansible specification. Change-Id: I7a1872c6fa8fc778e742e9ad417e9bf2560a342a Signed-off-by: Kevin Carter <kecarter@redhat.com>
This commit is contained in:
parent
db36cf0b8f
commit
1bfeabd488
|
@ -8,7 +8,23 @@ from ansible.plugins.callback.default import CallbackModule as DefaultCallback
|
|||
from datetime import datetime
|
||||
|
||||
|
||||
DOCUMENTATION = """
|
||||
name: tripleo_dense
|
||||
type: stdout
|
||||
short_description: default TripleO screen output
|
||||
version_added: historical
|
||||
description:
|
||||
- This is the default output callback for TripleO.
|
||||
extends_documentation_fragment:
|
||||
- default_callback
|
||||
requirements:
|
||||
- set as stdout in configuration
|
||||
"""
|
||||
|
||||
|
||||
class CallbackModule(DefaultCallback):
|
||||
def get_options(self, option_string):
|
||||
pass
|
||||
|
||||
def _output(self, msg, color=None):
|
||||
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")
|
||||
|
|
Loading…
Reference in New Issue