templates: fix typo in string/mapping check

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
This commit is contained in:
Andrew Bonney
2021-01-18 13:00:01 +00:00
parent 6937a0a67a
commit 3c924d2531

View File

@@ -1,7 +1,7 @@
{% for section, params in item.systemd_overrides.items() %}
[{{ section }}]
{% for key, value in params.items() %}
{% if value is iterable and (var is not string and var is not mapping) %}
{% if value is iterable and (value is not string and value is not mapping) %}
{% for i in value %}
{{ key }} = {{ i }}
{% endfor %}