We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e981076 commit fa40bb8Copy full SHA for fa40bb8
utils/sysdig/client_config.py
@@ -79,7 +79,7 @@ def _get_public_api_url(base_url: str) -> str:
79
# This assumes the region is a subdomain that starts with 2 lowercase letters and ends with a digit
80
pattern = re.search(r"https://(?:(?P<region1>[a-z]{2}\d)\.app|app\.(?P<region2>[a-z]{2}\d))\.sysdig\.com", base_url)
81
if pattern:
82
- region = pattern.group(1) # Extract the region
+ region = pattern.group("region1") or pattern.group("region2") # Extract the region
83
return f"https://api.{region}.sysdig.com"
84
else:
85
# Edge case for the secure API URL that is us1
0 commit comments