fix: --name option for the create-tenant command does not take effect (#11993)

This commit is contained in:
eux
2024-12-24 21:58:05 +08:00
committed by GitHub
parent cdaef30cc9
commit 49bc602fb2
2 changed files with 9 additions and 3 deletions

View File

@@ -561,8 +561,13 @@ def create_tenant(email: str, language: Optional[str] = None, name: Optional[str
new_password = secrets.token_urlsafe(16)
# register account
account = RegisterService.register(email=email, name=account_name, password=new_password, language=language)
account = RegisterService.register(
email=email,
name=account_name,
password=new_password,
language=language,
create_workspace_required=False,
)
TenantService.create_owner_tenant_if_not_exist(account, name)
click.echo(