Skip to content

Commit 9fc585c

Browse files
authored
Merge pull request #3 from doubletwist13/fix-options
Changing how options line gets written out so that instead of multiple options lines only a single line with the options values gets written.
2 parents c4dd23f + a0b923e commit 9fc585c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/resolv.conf.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ nameserver {{ i }}
1212
{% for i in resolv_sortlist %}
1313
sortlist {{ i }}
1414
{% endfor %}
15-
{% for i in resolv_options %}
16-
options {{ i }}
17-
{% endfor %}
15+
{% if resolv_options %}
16+
options {{ resolv_options|join(' ') }}
17+
{% endif %}

0 commit comments

Comments
 (0)