Skip to content

Commit 853131e

Browse files
committed
Re-enable REGION env var detection
1 parent 3e2a0be commit 853131e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

msal/region.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66

77
def _detect_region(http_client=None):
8+
region = os.environ.get("REGION_NAME", "").replace(" ", "").lower() # e.g. westus2
9+
if region:
10+
return region
811
if http_client:
912
return _detect_region_of_azure_vm(http_client) # It could hang for minutes
1013
return None

0 commit comments

Comments
 (0)