From 1e9217197ffc434b10b016374f9c835f78424e22 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 21:41:56 +0100 Subject: [PATCH] [PR #11205/d364e354 backport][stable-12] Deprecate unused module utils (#11213) Deprecate unused module utils (#11205) Deprecate unused module utils. (cherry picked from commit d364e35423b6a105753654747cce2ad9b75704db) Co-authored-by: Felix Fontein --- changelogs/fragments/11205-module_utils.yml | 9 +++++++++ meta/runtime.yml | 16 ++++++++++++++++ plugins/module_utils/cloud.py | 2 ++ plugins/module_utils/database.py | 2 ++ plugins/module_utils/known_hosts.py | 2 ++ plugins/module_utils/saslprep.py | 2 ++ 6 files changed, 33 insertions(+) create mode 100644 changelogs/fragments/11205-module_utils.yml diff --git a/changelogs/fragments/11205-module_utils.yml b/changelogs/fragments/11205-module_utils.yml new file mode 100644 index 0000000000..61fc0d2345 --- /dev/null +++ b/changelogs/fragments/11205-module_utils.yml @@ -0,0 +1,9 @@ +deprecated_features: + - "cloud module utils - this module utils is not used by community.general and will thus be removed from community.general 13.0.0. + If you are using it from another collection, please copy it over (https://github.com/ansible-collections/community.general/pull/11205)." + - "database module utils - this module utils is not used by community.general and will thus be removed from community.general 13.0.0. + If you are using it from another collection, please copy it over (https://github.com/ansible-collections/community.general/pull/11205)." + - "known_hosts module utils - this module utils is not used by community.general and will thus be removed from community.general 13.0.0. + If you are using it from another collection, please copy it over (https://github.com/ansible-collections/community.general/pull/11205)." + - "saslprep module utils - this module utils is not used by community.general and will thus be removed from community.general 13.0.0. + If you are using it from another collection, please copy it over (https://github.com/ansible-collections/community.general/pull/11205)." diff --git a/meta/runtime.yml b/meta/runtime.yml index 3fd7b62ff6..ffd1bc32f4 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -1146,6 +1146,14 @@ plugin_routing: warning_text: This doc fragment was used by rax modules, that relied on the deprecated package pyrax. module_utils: + cloud: + deprecation: + removal_version: 13.0.0 + warning_text: This code is not used by community.general. If you want to use it in another collection, please copy it over. + database: + deprecation: + removal_version: 13.0.0 + warning_text: This code is not used by community.general. If you want to use it in another collection, please copy it over. dimensiondata: deprecation: removal_version: 13.0.0 @@ -1162,6 +1170,10 @@ plugin_routing: redirect: community.google.gcp hetzner: redirect: community.hrobot.robot + known_hosts: + deprecation: + removal_version: 13.0.0 + warning_text: This code is not used by community.general. If you want to use it in another collection, please copy it over. kubevirt: redirect: community.kubevirt.kubevirt net_tools.nios.api: @@ -1193,6 +1205,10 @@ plugin_routing: redirect: dellemc.openmanage.dellemc_idrac remote_management.dellemc.ome: redirect: dellemc.openmanage.ome + saslprep: + deprecation: + removal_version: 13.0.0 + warning_text: This code is not used by community.general. If you want to use it in another collection, please copy it over. inventory: docker_machine: redirect: community.docker.docker_machine diff --git a/plugins/module_utils/cloud.py b/plugins/module_utils/cloud.py index d38cae8b26..de61a8095d 100644 --- a/plugins/module_utils/cloud.py +++ b/plugins/module_utils/cloud.py @@ -3,6 +3,8 @@ # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later +# This module utils is deprecated and will be removed in community.general 13.0.0 + from __future__ import annotations diff --git a/plugins/module_utils/database.py b/plugins/module_utils/database.py index c2ddfb3c2b..7ec20e18a4 100644 --- a/plugins/module_utils/database.py +++ b/plugins/module_utils/database.py @@ -9,6 +9,8 @@ # Simplified BSD License (see LICENSES/BSD-2-Clause.txt or https://opensource.org/licenses/BSD-2-Clause) # SPDX-License-Identifier: BSD-2-Clause +# This module utils is deprecated and will be removed in community.general 13.0.0 + from __future__ import annotations import re diff --git a/plugins/module_utils/known_hosts.py b/plugins/module_utils/known_hosts.py index 6f400b0166..4996ee7ef1 100644 --- a/plugins/module_utils/known_hosts.py +++ b/plugins/module_utils/known_hosts.py @@ -9,6 +9,8 @@ # Simplified BSD License (see LICENSES/BSD-2-Clause.txt or https://opensource.org/licenses/BSD-2-Clause) # SPDX-License-Identifier: BSD-2-Clause +# This module utils is deprecated and will be removed in community.general 13.0.0 + from __future__ import annotations import os diff --git a/plugins/module_utils/saslprep.py b/plugins/module_utils/saslprep.py index 48ddfff538..475e2bdbbe 100644 --- a/plugins/module_utils/saslprep.py +++ b/plugins/module_utils/saslprep.py @@ -9,6 +9,8 @@ # Simplified BSD License (see LICENSES/BSD-2-Clause.txt or https://opensource.org/licenses/BSD-2-Clause) # SPDX-License-Identifier: BSD-2-Clause +# This module utils is deprecated and will be removed in community.general 13.0.0 + from __future__ import annotations from stringprep import (