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

cleanup (pep8 & pyflakes)

parent feeac94b
No related branches found
No related tags found
No related merge requests found
...@@ -4,13 +4,12 @@ ...@@ -4,13 +4,12 @@
import os import os
import sys import sys
import subprocess import subprocess
import shlex
import imp import imp
# Check that ntpd is synced # Check that ntpd is synced
print('Running ntpq -pd') print('Running ntpq -pd')
ntpd_status = subprocess.getoutput('LANG=C ntpq -pd') ntpd_status = subprocess.getoutput('LANG=C ntpq -pd')
if not 'remote' in ntpd_status: if 'remote' not in ntpd_status:
print('NTP not working, ntpq -p output:\n%s' % ntpd_status) print('NTP not working, ntpq -p output:\n%s' % ntpd_status)
sys.exit(1) sys.exit(1)
else: else:
......
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