Skip to content

Commit

Permalink
filters: minor doc fix (#71178)
Browse files Browse the repository at this point in the history
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
  • Loading branch information
Akasurde committed Aug 10, 2020
1 parent edac065 commit 0a7ab39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docsite/rst/user_guide/playbooks_filters.rst
Expand Up @@ -146,7 +146,7 @@ Transforming lists into dictionaries

.. versionadded:: 2.7

Use the ``items2dict``filter to transform a list into a dictionary, mapping the content into ``key: value`` pairs::
Use the ``items2dict`` filter to transform a list into a dictionary, mapping the content into ``key: value`` pairs::

{{ tags | items2dict }}

Expand Down Expand Up @@ -1540,7 +1540,7 @@ To get the root and extension of a path or file name (new in version 2.0)::
The ``splitext`` filter returns a string. The individual components can be accessed by using the ``first`` and ``last`` filters::

# with path == 'nginx.conf' the return would be 'nginx'
{{ path | splitext | first }}
{{ path | splitext | first }}

# with path == 'nginx.conf' the return would be 'conf'
{{ path | splitext | last }}
Expand Down

0 comments on commit 0a7ab39

Please sign in to comment.