From 5e988b80538bfe8bf72cc5767f0a0ce896d4f445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu> Date: Thu, 1 Jun 2017 10:20:22 +0200 Subject: [PATCH] handle both aaa.bbb.ccc and aaa.ccc cases, refs #21661 --- tests/test_monitoring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_monitoring.py b/tests/test_monitoring.py index 4a2d76af..b11608b4 100755 --- a/tests/test_monitoring.py +++ b/tests/test_monitoring.py @@ -40,7 +40,7 @@ def print_green(txt): host = conf.get('MS_SERVER_NAME') -suffix = host.split('.')[-1] +suffix = '.'.join(host.split('.')[1:]) 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") -- GitLab