3c924d2531
A small typo that appears to have been missed during review, which can cause strings (for example) to be iterated over rather than included directly. Change-Id: Id1a9d7088f97b709c46d5f4563c0c498604f999e
14 lines
349 B
Django/Jinja
14 lines
349 B
Django/Jinja
{% for section, params in item.systemd_overrides.items() %}
|
|
[{{ section }}]
|
|
{% for key, value in params.items() %}
|
|
{% if value is iterable and (value is not string and value is not mapping) %}
|
|
{% for i in value %}
|
|
{{ key }} = {{ i }}
|
|
{% endfor %}
|
|
{% else %}
|
|
{{ key }} = {{ value }}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|