Skip to content
Snippets Groups Projects
Commit f423729c authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

PEP8

parent 61181b3d
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,7 @@ MUNIN_CHECK_PATH = "/var/cache/munin/www/%s/%s/cpu-day.png" % (suffix, host)
if not os.path.exists(MUNIN_CHECK_PATH):
MUNIN_CHECK_PATH = "/var/cache/munin/www/%s/%s/cpu-day.png" % ("localdomain", "localhost.localdomain")
def check_munin():
print('Checking if monitoring works')
mtime = os.path.getmtime(MUNIN_CHECK_PATH)
......@@ -62,5 +63,5 @@ if not os.path.exists(MUNIN_CHECK_PATH):
print_red('Munin data %s not found.' % MUNIN_CHECK_PATH)
sys.exit(1)
rc = check_munin()
rc = check_munin()
sys.exit(rc)
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