deploy: fix computing hostnames
This commit is contained in:
parent
0085fae98f
commit
b52e0fbe09
1 changed files with 1 additions and 1 deletions
2
tasks.py
2
tasks.py
|
@ -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(",")]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue