Skip to content
Snippets Groups Projects
Commit 5d67dbe0 authored by Florent Thiery's avatar Florent Thiery
Browse files

final fix for ntp systemctl support

parent 0ccbff2e
No related branches found
No related tags found
No related merge requests found
......@@ -44,8 +44,8 @@ if os.path.isfile('../utils.py'):
for l in d.split('\n'):
if l.startswith(ntpconf_expected):
servers.append(l.split(ntpconf_expected)[1])
if not 'server %s' % NTP_SERVER in d:
print('Expected NTP server %s not found in %s, found %s instead' % (NTP_SERVER,ntpconf, servers))
if not '%s%s' % (nfpconf_expected, NTP_SERVER) in d:
print('Expected NTP server %s not found in %s, found %s instead' % (NTP_SERVER, ntpconf, servers))
sys.exit(1)
else:
print('Expected NTP server %s found in configuration (total servers: %s)' % (NTP_SERVER, len(servers)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment