Skip to content

Commit

Permalink
Disable node.ssh_user check (#1395)
Browse files Browse the repository at this point in the history
  • Loading branch information
wasurerarenai authored Mar 28, 2024
1 parent 73f6b80 commit 0cbcf98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap/scripts/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 0cbcf98

Please sign in to comment.