diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-07-21 12:51:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-21 12:51:32 +0200 |
commit | e742ea07e625049895a0d77c3aee1d33b1eae968 (patch) | |
tree | 26dc4b9dbb47e2003b442d852d9c514172654b90 /data/templates | |
parent | a57cdd56aa50e8d33d98e03e068e2447890abe0e (diff) | |
parent | bd8caee1bc8b7121b8be18cde5d678c6b8966e03 (diff) | |
download | vyos-1x-e742ea07e625049895a0d77c3aee1d33b1eae968.tar.gz vyos-1x-e742ea07e625049895a0d77c3aee1d33b1eae968.zip |
Merge pull request #511 from sever-sever/T2718
ntp: T2718: Change template for correct server names
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/ntp/ntp.conf.tmpl | 2 |
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 %} |