fix container tests

This commit is contained in:
Jörg Thalheim
2024-03-07 14:03:41 +01:00
parent 26dd962799
commit 3cc97ebc56

View File

@@ -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)