From 960ed5acfdb48ba0e2a1b46d96d0c974a1907dbc Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Wed, 9 Jul 2025 06:31:19 +0200 Subject: [PATCH] [PR #10345/096fa388 backport][stable-10] logstash: Remove reference to Python 2 library (#10373) logstash: Remove reference to Python 2 library (#10345) * logstash: Remove reference to Python 2 library * Review requests * Apply suggestions from code review --------- (cherry picked from commit 096fa388acede3c0ee4c4b45ed16db13fbd0b598) Signed-off-by: Abhijeet Kasurde Co-authored-by: Abhijeet Kasurde Co-authored-by: Felix Fontein --- changelogs/fragments/logstash.yml | 3 +++ plugins/callback/logstash.py | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 changelogs/fragments/logstash.yml diff --git a/changelogs/fragments/logstash.yml b/changelogs/fragments/logstash.yml new file mode 100644 index 0000000000..1c7ec89b7d --- /dev/null +++ b/changelogs/fragments/logstash.yml @@ -0,0 +1,3 @@ +--- +bugfixes: + - logstash callback plugin - remove reference to Python 2 library (https://github.com/ansible-collections/community.general/pull/10345). diff --git a/plugins/callback/logstash.py b/plugins/callback/logstash.py index 9d299e50ed..4a46d4cbad 100644 --- a/plugins/callback/logstash.py +++ b/plugins/callback/logstash.py @@ -127,9 +127,7 @@ class CallbackModule(CallbackBase): if not HAS_LOGSTASH: self.disabled = True - self._display.warning("The required python-logstash/python3-logstash is not installed. " - "pip install python-logstash for Python 2" - "pip install python3-logstash for Python 3") + self._display.warning("The required python3-logstash is not installed.") self.start_time = now()