fix container tests

This commit is contained in:
Jörg Thalheim
2024-03-07 14:03:41 +01:00
parent 83cbc18f66
commit d3c09b342d

View File

@@ -258,7 +258,7 @@ class Driver:
self.machines = [] self.machines = []
for container in containers: 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: if not name_match:
raise ValueError(f"Unable to extract hostname from {container.name}") raise ValueError(f"Unable to extract hostname from {container.name}")
name = name_match.group(1) name = name_match.group(1)