Sort suboptions and subresults in docs. (#50315)

Fixes #50041.

(cherry picked from commit 4c473ecef4)
This commit is contained in:
Felix Fontein 2019-01-02 22:40:44 +01:00 committed by Toshio Kuratomi
parent 50d06d9889
commit 6c61fabdd1

View file

@ -196,9 +196,9 @@ Parameters
</tr> </tr>
{% if value.suboptions %} {% if value.suboptions %}
{% if value.suboptions.items %} {% if value.suboptions.items %}
@{ loop(value.suboptions.items()) }@ @{ loop(value.suboptions|dictsort) }@
{% elif value.suboptions[0].items %} {% elif value.suboptions[0].items %}
@{ loop(value.suboptions[0].items()) }@ @{ loop(value.suboptions[0]|dictsort) }@
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endfor %} {% 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 %}
{% if value.contains.items %} {% if value.contains.items %}
@{ loop(value.contains.items()) }@ @{ loop(value.contains|dictsort) }@
{% elif value.contains[0].items %} {% elif value.contains[0].items %}
@{ loop(value.contains[0].items()) }@ @{ loop(value.contains[0]|dictsort) }@
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
@ -394,9 +394,9 @@ Common return values are documented :ref:`here <common_return_values>`, the foll
# ---------------------------------------------------------#} # ---------------------------------------------------------#}
{% if value.contains %} {% if value.contains %}
{% if value.contains.items %} {% if value.contains.items %}
@{ loop(value.contains.items()) }@ @{ loop(value.contains|dictsort) }@
{% elif value.contains[0].items %} {% elif value.contains[0].items %}
@{ loop(value.contains[0].items()) }@ @{ loop(value.contains[0]|dictsort) }@
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}