diff options
author | Matt Martz <matt@sivel.net> | 2020-02-05 16:29:27 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-05 16:29:27 -0600 |
commit | 0e46af17a54546992626074d862f598bc683c7d0 (patch) | |
tree | 92b10562732b44181b3815e92904be14f67076f7 | |
parent | b868f1c933bf2e2d3efd1d20c1cfa1ed9326ea44 (diff) | |
download | ansible-0e46af17a54546992626074d862f598bc683c7d0.tar.gz |
Nuke all removed_module stubs (#67139)
* Nuke all removed_module stubs
* Remove ignores and botmeta entry
47 files changed, 12 insertions, 822 deletions
diff --git a/.github/BOTMETA.yml b/.github/BOTMETA.yml index 577b0620a3..7bf581f641 100644 --- a/.github/BOTMETA.yml +++ b/.github/BOTMETA.yml @@ -299,7 +299,6 @@ files: $modules/clustering/k8s/: maintainers: chouseknecht maxamillion fabianvf flaper87 willthames labels: k8s - $modules/clustering/k8s/_kubernetes.py: supertom $modules/clustering/openshift/: chouseknecht maxamillion fabianvf flaper87 $modules/commands/command.py: $team_ansible $modules/commands/raw.py: $team_ansible diff --git a/lib/ansible/module_utils/common/removed.py b/lib/ansible/module_utils/common/removed.py index 5c92e89440..45725b0f83 100644 --- a/lib/ansible/module_utils/common/removed.py +++ b/lib/ansible/module_utils/common/removed.py @@ -14,6 +14,9 @@ from ansible.module_utils._text import to_native def removed_module(removed_in, msg='This module has been removed. The module documentation for' ' Ansible-%(version)s may contain hints for porting'): """ + This function is deprecated and should not be used. Instead the module should just be + actually removed. This function is scheduled for removal for the 2.12 release. + Returns module failure along with a message about the module being removed :arg removed_in: The version that the module was removed in @@ -27,7 +30,15 @@ def removed_module(removed_in, msg='This module has been removed. The module doc if __name__ == '__main__': removed_module("2.4") """ - results = {'failed': True} + results = { + 'failed': True, + 'deprecations': [ + { + 'msg': 'The removed_module function is deprecated', + 'version': '2.12', + }, + ] + } # Convert numbers into strings removed_in = to_native(removed_in) diff --git a/lib/ansible/modules/cloud/amazon/_ec2_ami_find.py b/lib/ansible/modules/cloud/amazon/_ec2_ami_find.py deleted file mode 100644 index 4b173b2d11..0000000000 --- a/lib/ansible/modules/cloud/amazon/_ec2_ami_find.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/python -# Copyright: Ansible Project -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/cloud/amazon/_ec2_ami_search.py b/lib/ansible/modules/cloud/amazon/_ec2_ami_search.py deleted file mode 100644 index 5abf392e84..0000000000 --- a/lib/ansible/modules/cloud/amazon/_ec2_ami_search.py +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/python -# -# (c) 2013, Nimbis Services -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.2') diff --git a/lib/ansible/modules/cloud/amazon/_ec2_facts.py b/lib/ansible/modules/cloud/amazon/_ec2_facts.py deleted file mode 100644 index 0f7a8a3b01..0000000000 --- a/lib/ansible/modules/cloud/amazon/_ec2_facts.py +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# Copyright: (c) 2018, Ansible Project -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.7') diff --git a/lib/ansible/modules/cloud/amazon/_ec2_remote_facts.py b/lib/ansible/modules/cloud/amazon/_ec2_remote_facts.py deleted file mode 100644 index 6530a2abc8..0000000000 --- a/lib/ansible/modules/cloud/amazon/_ec2_remote_facts.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/python -# Copyright: Ansible Project -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.8') diff --git a/lib/ansible/modules/cloud/amazon/_ec2_vpc.py b/lib/ansible/modules/cloud/amazon/_ec2_vpc.py deleted file mode 100644 index 82b4e09f49..0000000000 --- a/lib/ansible/modules/cloud/amazon/_ec2_vpc.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/python -# Copyright: Ansible Project -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in="2.5") diff --git a/lib/ansible/modules/cloud/amazon/_s3.py b/lib/ansible/modules/cloud/amazon/_s3.py deleted file mode 100644 index 0f7a8a3b01..0000000000 --- a/lib/ansible/modules/cloud/amazon/_s3.py +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# Copyright: (c) 2018, Ansible Project -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.7') diff --git a/lib/ansible/modules/cloud/azure/_azure.py b/lib/ansible/modules/cloud/azure/_azure.py deleted file mode 100644 index afefd8eb97..0000000000 --- a/lib/ansible/modules/cloud/azure/_azure.py +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/python -# -# Copyright (c) Ansible Project -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.8') diff --git a/lib/ansible/modules/cloud/cloudstack/_cs_nic.py b/lib/ansible/modules/cloud/cloudstack/_cs_nic.py deleted file mode 100644 index b446c3618d..0000000000 --- a/lib/ansible/modules/cloud/cloudstack/_cs_nic.py +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# Copyright: (c) 2016, René Moser <mail@renemoser.net> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.8') diff --git a/lib/ansible/modules/cloud/docker/_docker.py b/lib/ansible/modules/cloud/docker/_docker.py deleted file mode 100644 index ad8ede8c0b..0000000000 --- a/lib/ansible/modules/cloud/docker/_docker.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# Copyright: (c) 2013, Cove Schneider -# Copyright: (c) 2014, Joshua Conner <joshua.conner@gmail.com> -# Copyright: (c) 2014, Pavel Antonov <antonov@adwz.ru> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.4') diff --git a/lib/ansible/modules/cloud/openstack/_os_server_actions.py b/lib/ansible/modules/cloud/openstack/_os_server_actions.py deleted file mode 100644 index 3668554e9c..0000000000 --- a/lib/ansible/modules/cloud/openstack/_os_server_actions.py +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# Copyright: (c) 2018, Ansible Project -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.8') diff --git a/lib/ansible/modules/cloud/vmware/_vsphere_guest.py b/lib/ansible/modules/cloud/vmware/_vsphere_guest.py deleted file mode 100644 index 8784570a66..0000000000 --- a/lib/ansible/modules/cloud/vmware/_vsphere_guest.py +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# Copyright: (c) 2013, Ansible Project -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/clustering/k8s/_kubernetes.py b/lib/ansible/modules/clustering/k8s/_kubernetes.py deleted file mode 100644 index f039d827b7..0000000000 --- a/lib/ansible/modules/clustering/k8s/_kubernetes.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/python - -# Copyright: (c) 2015, Google Inc. All Rights Reserved. -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/clustering/openshift/_oc.py b/lib/ansible/modules/clustering/openshift/_oc.py deleted file mode 100644 index 5fdcf542a8..0000000000 --- a/lib/ansible/modules/clustering/openshift/_oc.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- -# (c) 2017, Kenneth D. Evensen <kevensen@redhat.com> - -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import (absolute_import, division, print_function) -__metaclass__ = type - -ANSIBLE_METADATA = { - 'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community' -} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/crypto/acme/_letsencrypt.py b/lib/ansible/modules/crypto/acme/_letsencrypt.py deleted file mode 100644 index b1fa1f81f4..0000000000 --- a/lib/ansible/modules/crypto/acme/_letsencrypt.py +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/python -# -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see <http://www.gnu.org/licenses/>. -# - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in="2.10") diff --git a/lib/ansible/modules/network/aos/_aos_asn_pool.py b/lib/ansible/modules/network/aos/_aos_asn_pool.py deleted file mode 100644 index 9b960f6012..0000000000 --- a/lib/ansible/modules/network/aos/_aos_asn_pool.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python -# -# (c) 2017 Apstra Inc, <community@apstra.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/network/aos/_aos_blueprint.py b/lib/ansible/modules/network/aos/_aos_blueprint.py deleted file mode 100644 index 9b960f6012..0000000000 --- a/lib/ansible/modules/network/aos/_aos_blueprint.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python -# -# (c) 2017 Apstra Inc, <community@apstra.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/network/aos/_aos_blueprint_param.py b/lib/ansible/modules/network/aos/_aos_blueprint_param.py deleted file mode 100644 index 9b960f6012..0000000000 --- a/lib/ansible/modules/network/aos/_aos_blueprint_param.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python -# -# (c) 2017 Apstra Inc, <community@apstra.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/network/aos/_aos_blueprint_virtnet.py b/lib/ansible/modules/network/aos/_aos_blueprint_virtnet.py deleted file mode 100644 index 9b960f6012..0000000000 --- a/lib/ansible/modules/network/aos/_aos_blueprint_virtnet.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python -# -# (c) 2017 Apstra Inc, <community@apstra.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/network/aos/_aos_device.py b/lib/ansible/modules/network/aos/_aos_device.py deleted file mode 100644 index 9b960f6012..0000000000 --- a/lib/ansible/modules/network/aos/_aos_device.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python -# -# (c) 2017 Apstra Inc, <community@apstra.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/network/aos/_aos_external_router.py b/lib/ansible/modules/network/aos/_aos_external_router.py deleted file mode 100644 index 9b960f6012..0000000000 --- a/lib/ansible/modules/network/aos/_aos_external_router.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python -# -# (c) 2017 Apstra Inc, <community@apstra.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/network/aos/_aos_ip_pool.py b/lib/ansible/modules/network/aos/_aos_ip_pool.py deleted file mode 100644 index 9b960f6012..0000000000 --- a/lib/ansible/modules/network/aos/_aos_ip_pool.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python -# -# (c) 2017 Apstra Inc, <community@apstra.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/network/aos/_aos_logical_device.py b/lib/ansible/modules/network/aos/_aos_logical_device.py deleted file mode 100644 index 9b960f6012..0000000000 --- a/lib/ansible/modules/network/aos/_aos_logical_device.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python -# -# (c) 2017 Apstra Inc, <community@apstra.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/network/aos/_aos_logical_device_map.py b/lib/ansible/modules/network/aos/_aos_logical_device_map.py deleted file mode 100644 index 9b960f6012..0000000000 --- a/lib/ansible/modules/network/aos/_aos_logical_device_map.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python -# -# (c) 2017 Apstra Inc, <community@apstra.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/network/aos/_aos_login.py b/lib/ansible/modules/network/aos/_aos_login.py deleted file mode 100644 index 9b960f6012..0000000000 --- a/lib/ansible/modules/network/aos/_aos_login.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python -# -# (c) 2017 Apstra Inc, <community@apstra.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/network/aos/_aos_rack_type.py b/lib/ansible/modules/network/aos/_aos_rack_type.py deleted file mode 100644 index 9b960f6012..0000000000 --- a/lib/ansible/modules/network/aos/_aos_rack_type.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python -# -# (c) 2017 Apstra Inc, <community@apstra.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/network/aos/_aos_template.py b/lib/ansible/modules/network/aos/_aos_template.py deleted file mode 100644 index 9b960f6012..0000000000 --- a/lib/ansible/modules/network/aos/_aos_template.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python -# -# (c) 2017 Apstra Inc, <community@apstra.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/network/citrix/_netscaler.py b/lib/ansible/modules/network/citrix/_netscaler.py deleted file mode 100644 index d884d3c3ec..0000000000 --- a/lib/ansible/modules/network/citrix/_netscaler.py +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# Copyright: (c) 2013, Nandor Sivok <nandor@gawker.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.8') diff --git a/lib/ansible/modules/network/cumulus/_cl_bond.py b/lib/ansible/modules/network/cumulus/_cl_bond.py deleted file mode 100644 index 97edff7659..0000000000 --- a/lib/ansible/modules/network/cumulus/_cl_bond.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# (c) 2016, Cumulus Networks <ce-ceng@cumulusnetworks.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in="2.5") diff --git a/lib/ansible/modules/network/cumulus/_cl_bridge.py b/lib/ansible/modules/network/cumulus/_cl_bridge.py deleted file mode 100644 index 97edff7659..0000000000 --- a/lib/ansible/modules/network/cumulus/_cl_bridge.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# (c) 2016, Cumulus Networks <ce-ceng@cumulusnetworks.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in="2.5") diff --git a/lib/ansible/modules/network/cumulus/_cl_img_install.py b/lib/ansible/modules/network/cumulus/_cl_img_install.py deleted file mode 100644 index 97edff7659..0000000000 --- a/lib/ansible/modules/network/cumulus/_cl_img_install.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# (c) 2016, Cumulus Networks <ce-ceng@cumulusnetworks.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in="2.5") diff --git a/lib/ansible/modules/network/cumulus/_cl_interface.py b/lib/ansible/modules/network/cumulus/_cl_interface.py deleted file mode 100644 index 97edff7659..0000000000 --- a/lib/ansible/modules/network/cumulus/_cl_interface.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# (c) 2016, Cumulus Networks <ce-ceng@cumulusnetworks.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in="2.5") diff --git a/lib/ansible/modules/network/cumulus/_cl_interface_policy.py b/lib/ansible/modules/network/cumulus/_cl_interface_policy.py deleted file mode 100644 index 97edff7659..0000000000 --- a/lib/ansible/modules/network/cumulus/_cl_interface_policy.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# (c) 2016, Cumulus Networks <ce-ceng@cumulusnetworks.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in="2.5") diff --git a/lib/ansible/modules/network/cumulus/_cl_license.py b/lib/ansible/modules/network/cumulus/_cl_license.py deleted file mode 100644 index 97edff7659..0000000000 --- a/lib/ansible/modules/network/cumulus/_cl_license.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# (c) 2016, Cumulus Networks <ce-ceng@cumulusnetworks.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in="2.5") diff --git a/lib/ansible/modules/network/cumulus/_cl_ports.py b/lib/ansible/modules/network/cumulus/_cl_ports.py deleted file mode 100644 index 97edff7659..0000000000 --- a/lib/ansible/modules/network/cumulus/_cl_ports.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# (c) 2016, Cumulus Networks <ce-ceng@cumulusnetworks.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in="2.5") diff --git a/lib/ansible/modules/network/nxos/_nxos_ip_interface.py b/lib/ansible/modules/network/nxos/_nxos_ip_interface.py deleted file mode 100644 index 636c9ad98a..0000000000 --- a/lib/ansible/modules/network/nxos/_nxos_ip_interface.py +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/python -# Copyright: Ansible Project -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'network'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/network/nxos/_nxos_mtu.py b/lib/ansible/modules/network/nxos/_nxos_mtu.py deleted file mode 100644 index 8542647f20..0000000000 --- a/lib/ansible/modules/network/nxos/_nxos_mtu.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/python -# -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see <http://www.gnu.org/licenses/>. -# - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'network'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in="2.5") diff --git a/lib/ansible/modules/network/nxos/_nxos_portchannel.py b/lib/ansible/modules/network/nxos/_nxos_portchannel.py deleted file mode 100644 index 636c9ad98a..0000000000 --- a/lib/ansible/modules/network/nxos/_nxos_portchannel.py +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/python -# Copyright: Ansible Project -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'network'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/network/nxos/_nxos_switchport.py b/lib/ansible/modules/network/nxos/_nxos_switchport.py deleted file mode 100644 index 636c9ad98a..0000000000 --- a/lib/ansible/modules/network/nxos/_nxos_switchport.py +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/python -# Copyright: Ansible Project -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'network'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/network/panos/_panos_nat_policy.py b/lib/ansible/modules/network/panos/_panos_nat_policy.py deleted file mode 100644 index 45c6615b96..0000000000 --- a/lib/ansible/modules/network/panos/_panos_nat_policy.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- -# -# Ansible module to manage PaloAltoNetworks Firewall -# (c) 2016, techbizdev <techbizdev@paloaltonetworks.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/network/panos/_panos_security_policy.py b/lib/ansible/modules/network/panos/_panos_security_policy.py deleted file mode 100644 index 45c6615b96..0000000000 --- a/lib/ansible/modules/network/panos/_panos_security_policy.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- -# -# Ansible module to manage PaloAltoNetworks Firewall -# (c) 2016, techbizdev <techbizdev@paloaltonetworks.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/lib/ansible/modules/utilities/helper/_accelerate.py b/lib/ansible/modules/utilities/helper/_accelerate.py deleted file mode 100644 index be0b047ba6..0000000000 --- a/lib/ansible/modules/utilities/helper/_accelerate.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# Copyright: (c) 2013, James Cammarata <jcammarata@ansible.com> -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -from __future__ import absolute_import, division, print_function -__metaclass__ = type - - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in="2.4") diff --git a/lib/ansible/modules/windows/_win_msi.py b/lib/ansible/modules/windows/_win_msi.py deleted file mode 100644 index bbf1fb53a7..0000000000 --- a/lib/ansible/modules/windows/_win_msi.py +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -# Copyright: (c) 2014, Matt Martz <matt@sivel.net>, and others -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) - -# this is a windows documentation stub. actual code lives in the .ps1 -# file of the same name - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'community'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.8') diff --git a/test/integration/targets/ansible-doc/library/test_no_docs_removed_status.py b/test/integration/targets/ansible-doc/library/test_no_docs_removed_status.py deleted file mode 100644 index 0bcacb61d4..0000000000 --- a/test/integration/targets/ansible-doc/library/test_no_docs_removed_status.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python -from __future__ import absolute_import, division, print_function -__metaclass__ = type - - -ANSIBLE_METADATA = {'metadata_version': '1.1', - 'status': ['removed'], - 'supported_by': 'core'} - - -from ansible.module_utils.common.removed import removed_module - - -if __name__ == '__main__': - removed_module(removed_in='2.9') diff --git a/test/integration/targets/ansible-doc/test.yml b/test/integration/targets/ansible-doc/test.yml index 4398752c40..a6944c4462 100644 --- a/test/integration/targets/ansible-doc/test.yml +++ b/test/integration/targets/ansible-doc/test.yml @@ -96,10 +96,3 @@ that: - 'result is failed' - '"ERROR! module test_no_docs_non_iterable_status missing documentation (or could not parse documentation): test_no_docs_non_iterable_status did not contain a DOCUMENTATION attribute" in result.stderr' - - - name: module with no documentation and removed status - command: ansible-doc test_no_docs_removed_status - register: result - - assert: - that: - - '"[WARNING]: module test_no_docs_removed_status has been removed" in result.stderr' diff --git a/test/sanity/ignore.txt b/test/sanity/ignore.txt index 4dd021304e..566f451719 100644 --- a/test/sanity/ignore.txt +++ b/test/sanity/ignore.txt @@ -3010,30 +3010,6 @@ lib/ansible/modules/network/aireos/aireos_config.py validate-modules:doc-missing lib/ansible/modules/network/aireos/aireos_config.py validate-modules:doc-required-mismatch lib/ansible/modules/network/aireos/aireos_config.py validate-modules:parameter-list-no-elements lib/ansible/modules/network/aireos/aireos_config.py validate-modules:parameter-type-not-in-doc -lib/ansible/modules/network/aos/_aos_asn_pool.py future-import-boilerplate -lib/ansible/modules/network/aos/_aos_asn_pool.py metaclass-boilerplate -lib/ansible/modules/network/aos/_aos_blueprint.py future-import-boilerplate -lib/ansible/modules/network/aos/_aos_blueprint.py metaclass-boilerplate -lib/ansible/modules/network/aos/_aos_blueprint_param.py future-import-boilerplate -lib/ansible/modules/network/aos/_aos_blueprint_param.py metaclass-boilerplate -lib/ansible/modules/network/aos/_aos_blueprint_virtnet.py future-import-boilerplate -lib/ansible/modules/network/aos/_aos_blueprint_virtnet.py metaclass-boilerplate -lib/ansible/modules/network/aos/_aos_device.py future-import-boilerplate -lib/ansible/modules/network/aos/_aos_device.py metaclass-boilerplate -lib/ansible/modules/network/aos/_aos_external_router.py future-import-boilerplate -lib/ansible/modules/network/aos/_aos_external_router.py metaclass-boilerplate -lib/ansible/modules/network/aos/_aos_ip_pool.py future-import-boilerplate -lib/ansible/modules/network/aos/_aos_ip_pool.py metaclass-boilerplate -lib/ansible/modules/network/aos/_aos_logical_device.py future-import-boilerplate -lib/ansible/modules/network/aos/_aos_logical_device.py metaclass-boilerplate -lib/ansible/modules/network/aos/_aos_logical_device_map.py future-import-boilerplate -lib/ansible/modules/network/aos/_aos_logical_device_map.py metaclass-boilerplate -lib/ansible/modules/network/aos/_aos_login.py future-import-boilerplate -lib/ansible/modules/network/aos/_aos_login.py metaclass-boilerplate -lib/ansible/modules/network/aos/_aos_rack_type.py future-import-boilerplate -lib/ansible/modules/network/aos/_aos_rack_type.py metaclass-boilerplate -lib/ansible/modules/network/aos/_aos_template.py future-import-boilerplate -lib/ansible/modules/network/aos/_aos_template.py metaclass-boilerplate lib/ansible/modules/network/apconos/apconos_command.py validate-modules:parameter-list-no-elements lib/ansible/modules/network/aruba/aruba_command.py validate-modules:doc-default-does-not-match-spec lib/ansible/modules/network/aruba/aruba_command.py validate-modules:doc-missing-type @@ -5562,8 +5538,6 @@ lib/ansible/modules/network/nxos/_nxos_interface.py validate-modules:doc-require lib/ansible/modules/network/nxos/_nxos_interface.py validate-modules:missing-suboption-docs lib/ansible/modules/network/nxos/_nxos_interface.py validate-modules:parameter-type-not-in-doc lib/ansible/modules/network/nxos/_nxos_interface.py validate-modules:undocumented-parameter -lib/ansible/modules/network/nxos/_nxos_ip_interface.py future-import-boilerplate -lib/ansible/modules/network/nxos/_nxos_ip_interface.py metaclass-boilerplate lib/ansible/modules/network/nxos/_nxos_l2_interface.py validate-modules:doc-choices-do-not-match-spec lib/ansible/modules/network/nxos/_nxos_l2_interface.py validate-modules:doc-default-does-not-match-spec lib/ansible/modules/network/nxos/_nxos_l2_interface.py validate-modules:doc-default-incompatible-type @@ -5592,12 +5566,6 @@ lib/ansible/modules/network/nxos/_nxos_linkagg.py validate-modules:missing-subop lib/ansible/modules/network/nxos/_nxos_linkagg.py validate-modules:parameter-list-no-elements lib/ansible/modules/network/nxos/_nxos_linkagg.py validate-modules:parameter-type-not-in-doc lib/ansible/modules/network/nxos/_nxos_linkagg.py validate-modules:undocumented-parameter -lib/ansible/modules/network/nxos/_nxos_mtu.py future-import-boilerplate -lib/ansible/modules/network/nxos/_nxos_mtu.py metaclass-boilerplate -lib/ansible/modules/network/nxos/_nxos_portchannel.py future-import-boilerplate -lib/ansible/modules/network/nxos/_nxos_portchannel.py metaclass-boilerplate -lib/ansible/modules/network/nxos/_nxos_switchport.py future-import-boilerplate -lib/ansible/modules/network/nxos/_nxos_switchport.py metaclass-boilerplate lib/ansible/modules/network/nxos/_nxos_vlan.py validate-modules:doc-choices-do-not-match-spec lib/ansible/modules/network/nxos/_nxos_vlan.py validate-modules:doc-default-does-not-match-spec lib/ansible/modules/network/nxos/_nxos_vlan.py validate-modules:doc-default-incompatible-type @@ -6258,8 +6226,6 @@ lib/ansible/modules/network/panos/_panos_match_rule.py validate-modules:paramete lib/ansible/modules/network/panos/_panos_mgtconfig.py future-import-boilerplate lib/ansible/modules/network/panos/_panos_mgtconfig.py metaclass-boilerplate lib/ansible/modules/network/panos/_panos_mgtconfig.py validate-modules:doc-missing-type -lib/ansible/modules/network/panos/_panos_nat_policy.py future-import-boilerplate -lib/ansible/modules/network/panos/_panos_nat_policy.py metaclass-boilerplate lib/ansible/modules/network/panos/_panos_nat_rule.py validate-modules:doc-missing-type lib/ansible/modules/network/panos/_panos_nat_rule.py validate-modules:doc-required-mismatch lib/ansible/modules/network/panos/_panos_nat_rule.py validate-modules:parameter-list-no-elements @@ -6289,8 +6255,6 @@ lib/ansible/modules/network/panos/_panos_sag.py metaclass-boilerplate lib/ansible/modules/network/panos/_panos_sag.py validate-modules:doc-missing-type lib/ansible/modules/network/panos/_panos_sag.py validate-modules:parameter-list-no-elements lib/ansible/modules/network/panos/_panos_sag.py validate-modules:parameter-type-not-in-doc -lib/ansible/modules/network/panos/_panos_security_policy.py future-import-boilerplate -lib/ansible/modules/network/panos/_panos_security_policy.py metaclass-boilerplate lib/ansible/modules/network/panos/_panos_security_rule.py validate-modules:doc-missing-type lib/ansible/modules/network/panos/_panos_security_rule.py validate-modules:doc-required-mismatch lib/ansible/modules/network/panos/_panos_security_rule.py validate-modules:parameter-list-no-elements @@ -7567,8 +7531,6 @@ lib/ansible/modules/web_infrastructure/supervisorctl.py validate-modules:paramet lib/ansible/modules/web_infrastructure/taiga_issue.py validate-modules:doc-missing-type lib/ansible/modules/web_infrastructure/taiga_issue.py validate-modules:parameter-list-no-elements lib/ansible/modules/web_infrastructure/taiga_issue.py validate-modules:parameter-type-not-in-doc -lib/ansible/modules/windows/_win_msi.py future-import-boilerplate -lib/ansible/modules/windows/_win_msi.py metaclass-boilerplate lib/ansible/modules/windows/async_status.ps1 pslint:PSCustomUseLiteralPath lib/ansible/modules/windows/setup.ps1 pslint:PSCustomUseLiteralPath lib/ansible/modules/windows/win_acl_inheritance.ps1 pslint:PSAvoidTrailingWhitespace |