summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2020-06-17 14:47:03 -0400
committerGitHub <noreply@github.com>2020-06-17 11:47:03 -0700
commit94df27233f707b0de69889a52c2ec05833e4d514 (patch)
treef0f9aab5519b74a509beb03e22ec2024c4a51d41
parent074ddace354b02c53b8016aded765aec1b732e1f (diff)
downloadansible-94df27233f707b0de69889a52c2ec05833e4d514.tar.gz
fixed missing default (#69972) (#69985)
* fixed missing default (#69972) * fixed missing default also deprecated so new options wont have to go through this (cherry picked from commit 805dff41290af657d21b00567c418c338f42e720) * remove deprecation
-rw-r--r--changelogs/fragments/deprecate_default_call_fragmentless.yml4
-rw-r--r--lib/ansible/plugins/callback/default.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/changelogs/fragments/deprecate_default_call_fragmentless.yml b/changelogs/fragments/deprecate_default_call_fragmentless.yml
new file mode 100644
index 0000000000..0f051b1266
--- /dev/null
+++ b/changelogs/fragments/deprecate_default_call_fragmentless.yml
@@ -0,0 +1,4 @@
+deprecated_features:
+ - Using the DefaultCallback without the correspodning doc_fragment or copying the documentation.
+bugfixes:
+ - added new option for default callback to compat variable to avoid old 3rd party plugins from erroring out.
diff --git a/lib/ansible/plugins/callback/default.py b/lib/ansible/plugins/callback/default.py
index c68010959d..cd4c320f33 100644
--- a/lib/ansible/plugins/callback/default.py
+++ b/lib/ansible/plugins/callback/default.py
@@ -43,7 +43,6 @@ from ansible.playbook.task_include import TaskInclude
from ansible.plugins.callback import CallbackBase
from ansible.utils.color import colorize, hostcolor
-
# These values use ansible.constants for historical reasons, mostly to allow
# unmodified derivative plugins to work. However, newer options added to the
# plugin are not also added to ansible.constants, so authors of derivative
@@ -57,7 +56,8 @@ COMPAT_OPTIONS = (('display_skipped_hosts', C.DISPLAY_SKIPPED_HOSTS),
('display_ok_hosts', True),
('show_custom_stats', C.SHOW_CUSTOM_STATS),
('display_failed_stderr', False),
- ('check_mode_markers', False),)
+ ('check_mode_markers', False),
+ ('show_per_host_start', False))
class CallbackModule(CallbackBase):