From 9f82fc204bfa79a52049b4cbb45ae7196d329166 Mon Sep 17 00:00:00 2001 From: Martin Krizek Date: Fri, 1 Apr 2022 11:01:20 +0200 Subject: [PATCH] apt_key: remove deprecated key module param (#77409) --- changelogs/fragments/apt_key-remove-deprecated-key.yml | 2 ++ lib/ansible/modules/apt_key.py | 1 - test/sanity/ignore.txt | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 changelogs/fragments/apt_key-remove-deprecated-key.yml diff --git a/changelogs/fragments/apt_key-remove-deprecated-key.yml b/changelogs/fragments/apt_key-remove-deprecated-key.yml new file mode 100644 index 00000000000..73ec7cb4431 --- /dev/null +++ b/changelogs/fragments/apt_key-remove-deprecated-key.yml @@ -0,0 +1,2 @@ +removed_features: + - apt_key - remove deprecated ``key`` module param diff --git a/lib/ansible/modules/apt_key.py b/lib/ansible/modules/apt_key.py index 29de275de27..974e7bf91f7 100644 --- a/lib/ansible/modules/apt_key.py +++ b/lib/ansible/modules/apt_key.py @@ -410,7 +410,6 @@ def main(): url=dict(type='str'), data=dict(type='str'), file=dict(type='path'), - key=dict(type='str', removed_in_version='2.14', removed_from_collection='ansible.builtin', no_log=False), keyring=dict(type='path'), validate_certs=dict(type='bool', default=True), keyserver=dict(type='str'), diff --git a/test/sanity/ignore.txt b/test/sanity/ignore.txt index 3303707d0f0..73e62f51b1e 100644 --- a/test/sanity/ignore.txt +++ b/test/sanity/ignore.txt @@ -48,7 +48,6 @@ lib/ansible/executor/powershell/async_wrapper.ps1 pslint:PSCustomUseLiteralPath lib/ansible/executor/powershell/exec_wrapper.ps1 pslint:PSCustomUseLiteralPath lib/ansible/executor/task_queue_manager.py pylint:disallowed-name lib/ansible/keyword_desc.yml no-unwanted-files -lib/ansible/modules/apt_key.py validate-modules:parameter-type-not-in-doc lib/ansible/modules/apt.py validate-modules:parameter-invalid lib/ansible/modules/apt_repository.py validate-modules:parameter-invalid lib/ansible/modules/assemble.py validate-modules:nonexistent-parameter-documented @@ -332,7 +331,6 @@ lib/ansible/module_utils/compat/_selectors2.py mypy-3.8:assignment # vendored c lib/ansible/module_utils/compat/_selectors2.py mypy-3.9:assignment # vendored code lib/ansible/module_utils/compat/_selectors2.py mypy-3.10:assignment # vendored code lib/ansible/module_utils/compat/_selectors2.py mypy-2.7:attr-defined # vendored code -lib/ansible/modules/apt_key.py validate-modules:ansible-deprecated-version lib/ansible/plugins/cache/__init__.py pylint:ansible-deprecated-version lib/ansible/plugins/callback/default.py pylint:ansible-deprecated-version test/support/integration/plugins/modules/ec2.py pylint:ansible-deprecated-version