From 0a7ab396c7595d9a2ace341395e50e5116a0dd15 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Tue, 11 Aug 2020 02:02:15 +0530 Subject: [PATCH] filters: minor doc fix (#71178) Signed-off-by: Abhijeet Kasurde --- docs/docsite/rst/user_guide/playbooks_filters.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docsite/rst/user_guide/playbooks_filters.rst b/docs/docsite/rst/user_guide/playbooks_filters.rst index 4ee99db1aef..f222a587034 100644 --- a/docs/docsite/rst/user_guide/playbooks_filters.rst +++ b/docs/docsite/rst/user_guide/playbooks_filters.rst @@ -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 }} @@ -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 }}