Skip to content

Commit 5fdae2d

Browse files
committed
REGION_NAME has no unified format across services
1 parent 96140b0 commit 5fdae2d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

msal/region.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@
55

66

77
def _detect_region(http_client=None):
8-
region = _detect_region_of_azure_function() # It is cheap, so we do it always
9-
if http_client and not region:
8+
if http_client:
109
return _detect_region_of_azure_vm(http_client) # It could hang for minutes
11-
return region
12-
13-
14-
def _detect_region_of_azure_function():
15-
return os.environ.get("REGION_NAME")
10+
return None
1611

1712

1813
def _detect_region_of_azure_vm(http_client):

0 commit comments

Comments
 (0)