From 3cc97ebc569fa29b0c78fcb1ca91b6625b949efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 7 Mar 2024 14:03:41 +0100 Subject: [PATCH] fix container tests --- checks/lib/container-driver/test_driver/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks/lib/container-driver/test_driver/__init__.py b/checks/lib/container-driver/test_driver/__init__.py index 95c16eb08..be9673a38 100644 --- a/checks/lib/container-driver/test_driver/__init__.py +++ b/checks/lib/container-driver/test_driver/__init__.py @@ -258,7 +258,7 @@ class Driver: self.machines = [] for container in containers: - name_match = re.match(r".*-nixos-system-(.+)-\d.+", container.name) + name_match = re.match(r".*-nixos-system-(.+)-(.+)", container.name) if not name_match: raise ValueError(f"Unable to extract hostname from {container.name}") name = name_match.group(1)