Removed the unnecessary list loop in the nsswitch.conf template

This commit is contained in:
Gregory Ballantine 2017-05-23 15:28:51 -04:00
parent eb12313fec
commit b818eb706b

View File

@ -9,10 +9,6 @@
# `info libc "Name Service Switch"' for information about this file. # `info libc "Name Service Switch"' for information about this file.
{%- for key, value in nsswitch.config.iteritems() %} {%- for key, value in nsswitch.config.iteritems() %}
{%- if value is list %}
{{ key }}: {{ v for v in value }}
{%- else %}
{{ key }}: {{ value }} {{ key }}: {{ value }}
{%- endif %}
{%- endfor %} {%- endfor %}