From 0cbcf98698a546f1916753bbd9f741f5c3bd8416 Mon Sep 17 00:00:00 2001 From: Wasurerarenai Date: Thu, 28 Mar 2024 10:12:16 -0500 Subject: [PATCH] Disable node.ssh_user check (#1395) --- bootstrap/scripts/validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/scripts/validation.py b/bootstrap/scripts/validation.py index c118ba16f46..5cc34282255 100644 --- a/bootstrap/scripts/validation.py +++ b/bootstrap/scripts/validation.py @@ -56,7 +56,7 @@ def validate_node(node: dict, node_cidr: str, distribution: str) -> None: raise ValueError(f"A node is missing a name") if not re.match(r"^[a-z0-9-\.]+$", node.get('name')): raise ValueError(f"Node {node.get('name')} has an invalid name") - if not node.get("ssh_user") and distribution not in ["k3s"]: + if not node.get("ssh_user") and distribution in ["k3s"]: raise ValueError(f"Node {node.get('name')} is missing ssh_user") if not node.get("talos_disk") and distribution in ["talos"]: raise ValueError(f"Node {node.get('name')} is missing talos_disk")