From f29b46e43828d2935e78e988771523b95786b11a Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Tue, 29 Oct 2024 08:07:20 -0700 Subject: Remove deprecated plural form of collection path (#84156) Signed-off-by: Abhijeet Kasurde --- changelogs/fragments/config.yml | 3 +++ lib/ansible/config/base.yml | 9 --------- .../targets/ansible-galaxy-collection/tasks/install.yml | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) create mode 100644 changelogs/fragments/config.yml diff --git a/changelogs/fragments/config.yml b/changelogs/fragments/config.yml new file mode 100644 index 0000000000..e7b7d6f808 --- /dev/null +++ b/changelogs/fragments/config.yml @@ -0,0 +1,3 @@ +--- +removed_features: + - Remove deprecated plural form of collection path (https://github.com/ansible/ansible/pull/84156). diff --git a/lib/ansible/config/base.yml b/lib/ansible/config/base.yml index 2613e1812d..141f85caa4 100644 --- a/lib/ansible/config/base.yml +++ b/lib/ansible/config/base.yml @@ -212,18 +212,9 @@ COLLECTIONS_PATHS: default: '{{ ANSIBLE_HOME ~ "/collections:/usr/share/ansible/collections" }}' type: pathspec env: - - name: ANSIBLE_COLLECTIONS_PATHS - deprecated: - why: does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead - version: "2.19" - name: ANSIBLE_COLLECTIONS_PATH version_added: '2.10' ini: - - key: collections_paths - section: defaults - deprecated: - why: does not fit var naming standard, use the singular form collections_path instead - version: "2.19" - key: collections_path section: defaults version_added: '2.10' diff --git a/test/integration/targets/ansible-galaxy-collection/tasks/install.yml b/test/integration/targets/ansible-galaxy-collection/tasks/install.yml index 4cc3985c6a..f6055b660c 100644 --- a/test/integration/targets/ansible-galaxy-collection/tasks/install.yml +++ b/test/integration/targets/ansible-galaxy-collection/tasks/install.yml @@ -1155,7 +1155,7 @@ - name: install collection with directory source and trailing slash - {{ test_id }} command: ansible-galaxy collection install '{{ galaxy_dir }}/scratch/trailing_dir/name/' {{ galaxy_verbosity }} environment: - ANSIBLE_COLLECTIONS_PATHS: '{{ galaxy_dir }}/ansible_collections' + ANSIBLE_COLLECTIONS_PATH: '{{ galaxy_dir }}/ansible_collections' register: install_dir_slash - name: get result of install collections with with trailing slash - {{ test_id }} -- cgit v1.2.3