Skip to content

Commit 3f9b5ff

Browse files
authored
feat: use dns alias as base url for Prod (#245)
1 parent 3c9dd7b commit 3f9b5ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sumo/wrapper/sumo_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,12 @@ def __init__(
113113
case_uuid=case_uuid,
114114
)
115115

116-
if env == "localhost":
116+
if env == "prod":
117+
self.base_url = "https://api.sumo.equinor.com/api/v1"
118+
elif env == "localhost":
117119
self.base_url = "http://localhost:8084/api/v1"
118120
else:
119121
self.base_url = f"https://main-sumo-{env}.radix.equinor.com/api/v1"
120-
pass
121122
return
122123

123124
def __enter__(self):

0 commit comments

Comments
 (0)