From f423729c5dc034410adadffb2d5f9896743eb776 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu> Date: Fri, 29 Sep 2017 16:43:58 +0200 Subject: [PATCH] PEP8 --- tests/test_monitoring.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_monitoring.py b/tests/test_monitoring.py index b11608b4..4d5784f4 100755 --- a/tests/test_monitoring.py +++ b/tests/test_monitoring.py @@ -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) -- GitLab