mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
ntp: clones the server list from manifest
This commit is contained in:
parent
afffdf680d
commit
16f37ceca8
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class SetNtpServers(Task):
|
|||
import os
|
||||
import re
|
||||
ntp_path = os.path.join(info.root, 'etc/ntp.conf')
|
||||
servers = info.manifest.plugins['ntp']['servers']
|
||||
servers = list(info.manifest.plugins['ntp']['servers'])
|
||||
debian_ntp_server = re.compile('.*[0-9]\.debian\.pool\.ntp\.org.*')
|
||||
for line in fileinput.input(files=ntp_path, inplace=True):
|
||||
# Will write all the specified servers on the first match, then supress all other default servers
|
||||
|
|
Loading…
Add table
Reference in a new issue