summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-21 12:51:32 +0200
committerGitHub <noreply@github.com>2020-07-21 12:51:32 +0200
commite742ea07e625049895a0d77c3aee1d33b1eae968 (patch)
tree26dc4b9dbb47e2003b442d852d9c514172654b90
parenta57cdd56aa50e8d33d98e03e068e2447890abe0e (diff)
parentbd8caee1bc8b7121b8be18cde5d678c6b8966e03 (diff)
downloadvyos-1x-e742ea07e625049895a0d77c3aee1d33b1eae968.tar.gz
vyos-1x-e742ea07e625049895a0d77c3aee1d33b1eae968.zip
Merge pull request #511 from sever-sever/T2718
ntp: T2718: Change template for correct server names
-rw-r--r--data/templates/ntp/ntp.conf.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/ntp/ntp.conf.tmpl b/data/templates/ntp/ntp.conf.tmpl
index 1c51929fd..6ef0c0f2c 100644
--- a/data/templates/ntp/ntp.conf.tmpl
+++ b/data/templates/ntp/ntp.conf.tmpl
@@ -19,7 +19,7 @@ restrict -6 ::1
{% set options = options + 'noselect ' if server[srv].noselect is defined else '' %}
{% set options = options + 'preempt ' if server[srv].preempt is defined else '' %}
{% set options = options + 'prefer ' if server[srv].prefer is defined else '' %}
-server {{ srv }} iburst {{ options }}
+server {{ srv | replace('_', '-') }} iburst {{ options }}
{% endfor %}
{% endif %}