tasks.py: fix darwin/nixos deploy
This commit is contained in:
parent
9e7ba7ded3
commit
8c7230ab7b
1 changed files with 9 additions and 6 deletions
15
tasks.py
15
tasks.py
|
@ -112,13 +112,16 @@ def docs_linkcheck(c: Any) -> None:
|
|||
|
||||
|
||||
def get_hosts(hosts: str) -> List[DeployHost]:
|
||||
if "darwin" in hosts:
|
||||
return [
|
||||
DeployHost(f"{h}.nix-community.org", user="customer")
|
||||
for h in hosts.split(",")
|
||||
]
|
||||
deploy_hosts = []
|
||||
for host in hosts.split(","):
|
||||
if host.startswith("darwin"):
|
||||
deploy_hosts.append(
|
||||
DeployHost(f"{host}.nix-community.org", user="customer")
|
||||
)
|
||||
else:
|
||||
deploy_hosts.append(DeployHost(f"{host}.nix-community.org"))
|
||||
|
||||
return [DeployHost(f"{h}.nix-community.org") for h in hosts.split(",")]
|
||||
return deploy_hosts
|
||||
|
||||
|
||||
def decrypt_host_key(flake_attr: str, tmpdir: str) -> None:
|
||||
|
|
Loading…
Add table
Reference in a new issue