From 04647a3cb03bfaa29242cff02f3de9b0ac799f89 Mon Sep 17 00:00:00 2001 From: andreaf74 <53090017+andreaf74@users.noreply.github.com> Date: Thu, 12 Mar 2020 22:13:28 +0100 Subject: fix minor issue with resolv_conf template (#144) --- templates/resolv.conf.tmpl | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'templates') 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 %} -- cgit v1.2.3