updates jinja filters links with new pattern for Jinja 3.x documentation

pull/70542/head
Alicia Cozine 4 years ago committed by Toshio Kuratomi
parent 8c34eaa69f
commit 829c9c3d46

@ -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 <jinja2:map>`::
To make use of one attribute from each item in a list of complex variables, use the :func:`Jinja2 map filter <jinja2:jinja-filters.map>`::
# get a comma-separated list of the mount points (for example, "/,/mnt/stuff") on a host
{{ ansible_mounts | map(attribute='mount') | join(',') }}

@ -22,7 +22,7 @@ representation that Ansible can turn back into a list.
In Python3, those methods return a :ref:`dictionary view <python3:dict-views>` 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 <jinja2:list>` filter whenever using :meth:`dict.keys`,
using the :func:`list <jinja2:jinja-filters.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 <jinja2:list>` is necessary
why the :func:`list filter <jinja2:jinja-filters.list>` is necessary
here.

@ -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

Loading…
Cancel
Save