diff options
author | Matt Martz <matt@sivel.net> | 2017-12-07 09:16:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-07 09:16:04 -0500 |
commit | 349099a4c61aa1b8d37a13bb51d1684656f2ae73 (patch) | |
tree | ae6f76354e3df9859bb7c055f7ebe29342799609 | |
parent | 22f4074daa9a3a47c42de1f1d2061c5e6ab8a705 (diff) | |
download | ansible-349099a4c61aa1b8d37a13bb51d1684656f2ae73.tar.gz |
Fix sorting in man template on python3. Fixes #33663 (#33673)
-rw-r--r-- | docs/templates/man.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/templates/man.j2 b/docs/templates/man.j2 index bad8863397..c9a06994e8 100644 --- a/docs/templates/man.j2 +++ b/docs/templates/man.j2 @@ -51,7 +51,7 @@ ACTIONS *{{ action }}*::: {{ (actions[action]['desc']|default(' '))|wordwrap}} {% if actions[action]['options'] %} -{% for option in actions[action]['options']|sort %} +{% for option in actions[action]['options']|sort(attribute='options') %} {% for switch in option['options'] if switch in actions[action]['option_names'] %}*{{switch}}*{% if option['arg'] %} '{{option['arg']}}'{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}:: {{ (option['desc']) }} |