Skip to content

Commit

Permalink
Sort suboptions and subresults in docs. (ansible#50315)
Browse files Browse the repository at this point in the history
Fixes ansible#50041.

(cherry picked from commit 4c473ec)
  • Loading branch information
felixfontein authored and acozine committed Jan 28, 2019
1 parent cf4a27f commit 8a34123
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/templates/plugin.rst.j2
Expand Up @@ -196,9 +196,9 @@ Parameters
</tr>
{% 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 %}
Expand Down Expand Up @@ -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 %}
Expand Down Expand Up @@ -394,9 +394,9 @@ Common return values are documented :ref:`here <common_return_values>`, 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 %}
Expand Down

0 comments on commit 8a34123

Please sign in to comment.