Skip to content

Commit 4ac550d

Browse files
authored
Adding description of restrictions on creation of a new team name (#62448)
1 parent c48c219 commit 4ac550d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

airflow-core/src/airflow/cli/cli_config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,6 +1444,9 @@ class GroupCommand(NamedTuple):
14441444
ActionCommand(
14451445
name="create",
14461446
help="Create a team",
1447+
description=(
1448+
"Create a team. Team names must be 3-50 characters long and contain only alphanumeric characters, hyphens, and underscores.\n"
1449+
),
14471450
func=lazy_load_command("airflow.cli.commands.team_command.team_create"),
14481451
args=(ARG_TEAM_NAME, ARG_VERBOSE),
14491452
),

airflow-core/src/airflow/cli/commands/team_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _extract_team_name(args):
6161
@providers_configuration_loaded
6262
@provide_session
6363
def team_create(args, session=NEW_SESSION):
64-
"""Create a new team."""
64+
"""Create a new team. Team names must be 3-50 characters long and contain only alphanumeric characters, hyphens, and underscores."""
6565
team_name = _extract_team_name(args)
6666

6767
# Check if team with this name already exists

0 commit comments

Comments
 (0)