From 829c9c3d46b98fe1135e3c5a457714807b9e5544 Mon Sep 17 00:00:00 2001 From: Alicia Cozine Date: Wed, 12 May 2021 11:18:31 -0500 Subject: [PATCH] updates jinja filters links with new pattern for Jinja 3.x documentation --- docs/docsite/rst/user_guide/playbooks_filters.rst | 2 +- docs/docsite/rst/user_guide/playbooks_python_version.rst | 4 ++-- test/sanity/ignore.txt | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/docsite/rst/user_guide/playbooks_filters.rst b/docs/docsite/rst/user_guide/playbooks_filters.rst index 26b9b75c256..d03bead50c8 100644 --- a/docs/docsite/rst/user_guide/playbooks_filters.rst +++ b/docs/docsite/rst/user_guide/playbooks_filters.rst @@ -1697,7 +1697,7 @@ To create a namespaced UUIDv5 using the default Ansible namespace '361E6D51-FAEC .. versionadded:: 1.9 -To make use of one attribute from each item in a list of complex variables, use the :func:`Jinja2 map filter `:: +To make use of one attribute from each item in a list of complex variables, use the :func:`Jinja2 map filter `:: # get a comma-separated list of the mount points (for example, "/,/mnt/stuff") on a host {{ ansible_mounts | map(attribute='mount') | join(',') }} diff --git a/docs/docsite/rst/user_guide/playbooks_python_version.rst b/docs/docsite/rst/user_guide/playbooks_python_version.rst index 60821b37f42..df6c72f7b72 100644 --- a/docs/docsite/rst/user_guide/playbooks_python_version.rst +++ b/docs/docsite/rst/user_guide/playbooks_python_version.rst @@ -22,7 +22,7 @@ representation that Ansible can turn back into a list. In Python3, those methods return a :ref:`dictionary view ` object. The string representation that Jinja2 returns for dictionary views cannot be parsed back into a list by Ansible. It is, however, easy to make this portable by -using the :func:`list ` filter whenever using :meth:`dict.keys`, +using the :func:`list ` filter whenever using :meth:`dict.keys`, :meth:`dict.values`, or :meth:`dict.items`:: vars: @@ -60,5 +60,5 @@ Python3 dictionaries do not have these methods. Use :meth:`dict.keys`, :meth:`di .. seealso:: * The :ref:`pb-py-compat-dict-views` entry for information on - why the :func:`list filter ` is necessary + why the :func:`list filter ` is necessary here. diff --git a/test/sanity/ignore.txt b/test/sanity/ignore.txt index b7b3290eb28..9119a2316da 100644 --- a/test/sanity/ignore.txt +++ b/test/sanity/ignore.txt @@ -1,6 +1,4 @@ docs/docsite/rst/dev_guide/testing/sanity/no-smart-quotes.rst no-smart-quotes -docs/docsite/rst/user_guide/playbooks_filters.rst docs-build -docs/docsite/rst/user_guide/playbooks_python_version.rst docs-build examples/play.yml shebang examples/scripts/ConfigureRemotingForAnsible.ps1 pslint:PSCustomUseLiteralPath examples/scripts/my_test.py shebang # example module but not in a normal module location