Disable node.ssh_user check (#1395)

This commit is contained in:
Wasurerarenai authored and GitHub committed 2024-03-28 11:12:16 -04:00
1 parent 73f6b80b13
commit 0cbcf98698
1 file changed
+1 -1
+1 -1
View File
@@ -56,7 +56,7 @@ def validate_node(node: dict, node_cidr: str, distribution: str) -> None:
raise ValueError(f"A node is missing a name") raise ValueError(f"A node is missing a name")
if not re.match(r"^[a-z0-9-\.]+$", node.get('name')): if not re.match(r"^[a-z0-9-\.]+$", node.get('name')):
raise ValueError(f"Node {node.get('name')} has an invalid 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") raise ValueError(f"Node {node.get('name')} is missing ssh_user")
if not node.get("talos_disk") and distribution in ["talos"]: if not node.get("talos_disk") and distribution in ["talos"]:
raise ValueError(f"Node {node.get('name')} is missing talos_disk") raise ValueError(f"Node {node.get('name')} is missing talos_disk")