diff --git a/knot/files/knot.conf b/knot/files/knot.conf index 034276e..b944fe9 100644 --- a/knot/files/knot.conf +++ b/knot/files/knot.conf @@ -11,9 +11,9 @@ log: {%- if server.key is defined %} key: -{%- for key_name, key in server.key.iteritems() %} +{%- for key_name, key in server.key.items() %} - id: {{ key_name }} - {%- for param_name, param_value in key.iteritems() %} + {%- for param_name, param_value in key.items() %} {{ param_name }}: {% if param_value is string %}"{{ param_value }}"{% else %}{{ param_value }}{% endif %} {%- endfor %} {%- endfor %} @@ -55,9 +55,9 @@ template: {%- if server.zone is defined %} zone: -{%- for zone_name, zone in server.zone.iteritems() %} +{%- for zone_name, zone in server.zone.items() %} - domain: {{ zone_name }} - {%- for param_name, param_value in zone.iteritems() %} + {%- for param_name, param_value in zone.items() %} {%- if param_name != "records" %} {{ param_name }}: {% if param_value is string %}"{{ param_value }}"{% else %}{{ param_value }}{% endif %} {%- endif %}