summaryrefslogtreecommitdiffstats
path: root/docs/templates/config.rst.j2
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2017-11-28 19:05:19 +0100
committerGitHub <noreply@github.com>2017-11-28 19:05:19 +0100
commit84b8f674a7df5538044e35481660acbd49f2e41c (patch)
tree88b12f4926c5e9c680cbc6fccda2fa8ecd242e45 /docs/templates/config.rst.j2
parentFix ConfigParser.set error in vmware_inventory (#31643) (diff)
downloadansible-84b8f674a7df5538044e35481660acbd49f2e41c.tar.xz
ansible-84b8f674a7df5538044e35481660acbd49f2e41c.zip
Fix py3 docs build (#33345)
* Open file in binary mode to support py3 writes using bytes * Update sort filter to use an attribute, so that py3 can sort dictionaries
Diffstat (limited to 'docs/templates/config.rst.j2')
-rw-r--r--docs/templates/config.rst.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/templates/config.rst.j2 b/docs/templates/config.rst.j2
index 3df3bf0ba6..2fc1d322fe 100644
--- a/docs/templates/config.rst.j2
+++ b/docs/templates/config.rst.j2
@@ -65,11 +65,11 @@ you can use the command line utility mentioned above (`ansible-config`) to brows
{% if config['version_added'] %}
:Version Added: {{config['version_added']}}
{% endif %}
-{% for ini_map in config['ini']|sort %}
+{% for ini_map in config['ini']|sort(attribute='section') %}
:Ini Section: {{ini_map['section']}}
:Ini Key: {{ini_map['key']}}
{% endfor %}
-{% for env_var_map in config['env']|sort %}
+{% for env_var_map in config['env']|sort(attribute='name') %}
:Environment: :envvar:`{{env_var_map['name']}}`
{% endfor %}
{% if config['deprecated'] %}