Skip to content

Commit

Permalink
Lowercase org/instance name when computing Cloud instance DNS (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
elprans authored and fantix committed Jun 18, 2023
1 parent 50a25ef commit 0f30b26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions edgedb/con_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,9 @@ def _parse_cloud_instance_name_into_config(
org_slug: str,
instance_name: str,
):
org_slug = org_slug.lower()
instance_name = instance_name.lower()

label = f"{instance_name}--{org_slug}"
if len(label) > DOMAIN_LABEL_MAX_LENGTH:
raise ValueError(
Expand Down
2 changes: 1 addition & 1 deletion tests/shared-client-testcases

0 comments on commit 0f30b26

Please sign in to comment.