From 678b3d24b877ede0a2730c6c47d430a8b5f78244 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sat, 17 Oct 2020 01:10:27 +0300 Subject: wider service regexp for log reader --- kvmd/apps/kvmd/logreader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvmd/apps/kvmd/logreader.py b/kvmd/apps/kvmd/logreader.py index db5f44b0..bcebf42f 100644 --- a/kvmd/apps/kvmd/logreader.py +++ b/kvmd/apps/kvmd/logreader.py @@ -41,7 +41,7 @@ class LogReader: services = set( service for service in systemd.journal.Reader().query_unique("_SYSTEMD_UNIT") - if re.match(r"kvmd(-\w+)?\.service", service) + if re.match(r"kvmd(-\w+)*\.service", service) ).union(["kvmd.service"]) for service in services: -- cgit v1.2.3