Skip to content

Commit

Permalink
Use SUMO_ENV from config instead of reading environment variable dire…
Browse files Browse the repository at this point in the history
…ctly
  • Loading branch information
sigurdp committed Oct 2, 2023
1 parent ac032cb commit dd23ea9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/src/services/sumo_access/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

from sumo.wrapper import SumoClient


SUMO_ENV = os.getenv("WEBVIZ_SUMO_ENV", "dev")
from src.backend import config


def create_sumo_client_instance(access_token: str) -> SumoClient:
sumo_client = SumoClient(env=SUMO_ENV, token=access_token, interactive=False)
sumo_client = SumoClient(env=config.SUMO_ENV, token=access_token, interactive=False)
return sumo_client

0 comments on commit dd23ea9

Please sign in to comment.