Skip to content

Commit 2a9af4f

Browse files
mplsgrantpinheadmz
authored andcommitted
validate network name
1 parent b228f5a commit 2a9af4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/warnet/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ def quickstart():
115115
# Custom network configuration
116116
questions = [
117117
inquirer.Text(
118-
"network_name", message=click.style("Enter your network name", fg="blue", bold=True)
118+
"network_name", message=click.style("Enter your network name", fg="blue", bold=True),
119+
validate=lambda _, x: len(x) > 0
119120
),
120121
inquirer.List(
121122
"nodes",

0 commit comments

Comments
 (0)