summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorandreaf74 <53090017+andreaf74@users.noreply.github.com>2020-03-12 22:13:28 +0100
committerGitHub <noreply@github.com>2020-03-12 17:13:28 -0400
commit04647a3cb03bfaa29242cff02f3de9b0ac799f89 (patch)
tree14b8267d6bf21db8cad446c90e8717cf1d441346 /templates
parent05b1de3d7f3cf1d31b99cfb69e6ae2fd67033af9 (diff)
downloadvyos-cloud-init-04647a3cb03bfaa29242cff02f3de9b0ac799f89.tar.gz
vyos-cloud-init-04647a3cb03bfaa29242cff02f3de9b0ac799f89.zip
fix minor issue with resolv_conf template (#144)
Diffstat (limited to 'templates')
-rw-r--r--templates/resolv.conf.tmpl14
1 files changed, 11 insertions, 3 deletions
diff --git a/templates/resolv.conf.tmpl b/templates/resolv.conf.tmpl
index bfae80db..b6d46b4b 100644
--- a/templates/resolv.conf.tmpl
+++ b/templates/resolv.conf.tmpl
@@ -21,10 +21,18 @@ domain {{domain}}
sortlist {% for sort in sortlist %}{{sort}} {% endfor %}
{% endif %}
+{#
+ Flags and options are required to be on the
+ same line preceded by "options" keyword
+#}
{% if options or flags %}
-options {% for flag in flags %}{{flag}} {% endfor %}
-{% for key, value in options.items() -%}
- {{key}}:{{value}}
+options
+{%- for flag in flags %}
+ {{flag-}}
+{% endfor %}
+
+{%- for key, value in options.items() %}
+ {{key}}:{{value-}}
{% endfor %}
{% endif %}