From b0b376fce2d9970716cd5fda8489622871e55061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sylvain=20Monn=C3=A9?= Date: Mon, 13 Apr 2020 15:31:57 +0200 Subject: [PATCH] Fix warning message in dense callback plugin (#83) * fix dense callback plugin class name * add changelogs --- changelogs/fragments/83-dense-callback-warning.yml | 2 ++ plugins/callback/dense.py | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 changelogs/fragments/83-dense-callback-warning.yml diff --git a/changelogs/fragments/83-dense-callback-warning.yml b/changelogs/fragments/83-dense-callback-warning.yml new file mode 100644 index 0000000000..1d7993f9a3 --- /dev/null +++ b/changelogs/fragments/83-dense-callback-warning.yml @@ -0,0 +1,2 @@ +bugfixes: + - dense callback - fix plugin access to its configuration variables and remove a warning message (https://github.com/ansible/ansible/issues/64628). diff --git a/plugins/callback/dense.py b/plugins/callback/dense.py index 39693ae823..bec6227911 100644 --- a/plugins/callback/dense.py +++ b/plugins/callback/dense.py @@ -144,7 +144,7 @@ colors = dict( states = ('skipped', 'ok', 'changed', 'failed', 'unreachable') -class CallbackModule_dense(CallbackModule_default): +class CallbackModule(CallbackModule_default): ''' This is the dense callback interface, where screen estate is still valued. @@ -497,5 +497,3 @@ class CallbackModule_dense(CallbackModule_default): # When using -vv or higher, simply do the default action if display.verbosity >= 2 or not HAS_OD: CallbackModule = CallbackModule_default -else: - CallbackModule = CallbackModule_dense