From 6c61fabdd12d05a0fa5000a279dd3ae7b22beb4b Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Wed, 2 Jan 2019 22:40:44 +0100 Subject: [PATCH] Sort suboptions and subresults in docs. (#50315) Fixes #50041. (cherry picked from commit 4c473ecef484f9d583f2bf094f79189a874381e3) --- docs/templates/plugin.rst.j2 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/templates/plugin.rst.j2 b/docs/templates/plugin.rst.j2 index b1d32d7ba41..c10471d5dc0 100644 --- a/docs/templates/plugin.rst.j2 +++ b/docs/templates/plugin.rst.j2 @@ -196,9 +196,9 @@ Parameters {% if value.suboptions %} {% if value.suboptions.items %} - @{ loop(value.suboptions.items()) }@ + @{ loop(value.suboptions|dictsort) }@ {% elif value.suboptions[0].items %} - @{ loop(value.suboptions[0].items()) }@ + @{ loop(value.suboptions[0]|dictsort) }@ {% endif %} {% endif %} {% endfor %} @@ -324,9 +324,9 @@ Facts returned by this module are added/updated in the ``hostvars`` host facts a # ---------------------------------------------------------#} {% if value.contains %} {% if value.contains.items %} - @{ loop(value.contains.items()) }@ + @{ loop(value.contains|dictsort) }@ {% elif value.contains[0].items %} - @{ loop(value.contains[0].items()) }@ + @{ loop(value.contains[0]|dictsort) }@ {% endif %} {% endif %} {% endfor %} @@ -394,9 +394,9 @@ Common return values are documented :ref:`here `, the foll # ---------------------------------------------------------#} {% if value.contains %} {% if value.contains.items %} - @{ loop(value.contains.items()) }@ + @{ loop(value.contains|dictsort) }@ {% elif value.contains[0].items %} - @{ loop(value.contains[0].items()) }@ + @{ loop(value.contains[0]|dictsort) }@ {% endif %} {% endif %} {% endfor %}