Skip to content

Commit fa40bb8

Browse files
committed
fix: Support app.region format url
1 parent e981076 commit fa40bb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/sysdig/client_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _get_public_api_url(base_url: str) -> str:
7979
# This assumes the region is a subdomain that starts with 2 lowercase letters and ends with a digit
8080
pattern = re.search(r"https://(?:(?P<region1>[a-z]{2}\d)\.app|app\.(?P<region2>[a-z]{2}\d))\.sysdig\.com", base_url)
8181
if pattern:
82-
region = pattern.group(1) # Extract the region
82+
region = pattern.group("region1") or pattern.group("region2") # Extract the region
8383
return f"https://api.{region}.sysdig.com"
8484
else:
8585
# Edge case for the secure API URL that is us1

0 commit comments

Comments
 (0)