From 30e9cfdce0b350cbc0fd1543acc49881977572c4 Mon Sep 17 00:00:00 2001 From: Chris Collins Date: Fri, 19 Jul 2024 10:47:24 -0400 Subject: [PATCH] fix(connections) Harden adding /gms to connections in backend (#10942) --- metadata-ingestion/src/datahub/cli/cli_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/metadata-ingestion/src/datahub/cli/cli_utils.py b/metadata-ingestion/src/datahub/cli/cli_utils.py index 52aa3cb89d1da4..bda351a4de6b15 100644 --- a/metadata-ingestion/src/datahub/cli/cli_utils.py +++ b/metadata-ingestion/src/datahub/cli/cli_utils.py @@ -629,6 +629,9 @@ def _ensure_valid_gms_url_acryl_cloud(url: str) -> str: url = url.replace("http://", "https://") if url.endswith("acryl.io"): url = f"{url}/gms" + elif url.endswith("acryl.io/"): + url = f"{url}gms" + return url