From 1a8c37852b74e3b55ec8417c4c930f97b0614505 Mon Sep 17 00:00:00 2001
From: zowoq <59103226+zowoq@users.noreply.github.com>
Date: Thu, 16 May 2024 15:34:56 +1000
Subject: [PATCH] tasks.py: fix deploy

---
 tasks.py | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

diff --git a/tasks.py b/tasks.py
index 3d13233..3b677ba 100644
--- a/tasks.py
+++ b/tasks.py
@@ -111,17 +111,14 @@ def get_hosts(hosts: str) -> List[DeployHost]:
         systems = data["nixosConfigurations"]
         return [DeployHost(f"{n}.nix-community.org") for n in systems]
 
-    if "darwin01" in hosts:
-        return [
-            DeployHost(f"{h}.nix-community.org", user="customer")
-            for h in hosts.split(",")
-        ]
-
-    if "darwin02" or "darwin03" in hosts:
-        return [
-            DeployHost(f"{h}.nix-community.org", user="hetzner")
-            for h in hosts.split(",")
-        ]
+    if "darwin" in hosts:
+        if hosts == "darwin01":
+            return [DeployHost("darwin01.nix-community.org", user="customer")]
+        else:
+            return [
+                DeployHost(f"{h}.nix-community.org", user="hetzner")
+                for h in hosts.split(",")
+            ]
 
     return [DeployHost(f"{h}.nix-community.org") for h in hosts.split(",")]