From 4c473ecef484f9d583f2bf094f79189a874381e3 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. --- 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 4dbbb4183f2..fb9c420f1a8 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 %}