From 454dd9e91d6c42a674415274011b1115a375cc49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Geeraerts?= <10222438+b-enoit-be@users.noreply.github.com> Date: Fri, 31 May 2024 17:29:33 +0200 Subject: [PATCH] The extension returned by the splitext contains the dot (#82803) Fixed examples for splitext filter plugin --- lib/ansible/plugins/filter/splitext.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/plugins/filter/splitext.yml b/lib/ansible/plugins/filter/splitext.yml index 5f9469284f8..56d5c30a57c 100644 --- a/lib/ansible/plugins/filter/splitext.yml +++ b/lib/ansible/plugins/filter/splitext.yml @@ -14,14 +14,14 @@ DOCUMENTATION: EXAMPLES: | - # gobble => [ '/etc/make', 'conf' ] + # gobble => [ '/etc/make', '.conf' ] gobble: "{{ '/etc/make.conf' | splitext }}" - # file_n_ext => [ 'ansible', 'cfg' ] + # file_n_ext => [ 'ansible', '.cfg' ] file_n_ext: "{{ 'ansible.cfg' | splitext }}" - # hoax => ['/etc/hoasdf', ''] - hoax: '{{ "/etc//hoasdf/" | splitext }}' + # hoax => [ '/etc/hoasdf', '' ] + hoax: "{{ '/etc/hoasdf' | splitext }}" RETURN: _value: