deploy: fix computing hostnames

This commit is contained in:
Jörg Thalheim 2021-11-01 11:50:06 +01:00
parent 0085fae98f
commit b52e0fbe09

View file

@ -108,7 +108,7 @@ def nixos_install(c, hosts = ""):
def get_hosts(hosts: str) -> List[DeployHost]:
if hosts == "":
return [DeployHost(f"build{n + 1}.nix-community.org") for n in range(4)]
return [DeployHost(f"build{n + 1:02d}.nix-community.org") for n in range(4)]
return [DeployHost(f"{h}.nix-community.org") for h in hosts.split(",")]