Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
murilommen committed Jul 21, 2023
1 parent e75b654 commit 4c041da
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions whylabs_toolkit/helpers/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import logging
from enum import Enum
from urllib.parse import urlparse

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
Expand All @@ -20,12 +19,12 @@ def get_whylabs_api_key(self) -> str:
return Validations.require(ConfigVars.WHYLABS_API_KEY)

def get_whylabs_host(self) -> str:
_private_api_endpoint = Validations.get_or_default(ConfigVars.WHYLABS_PRIVATE_API_ENDPOINT)
_private_api_endpoint = Validations.get_or_default(ConfigVars.WHYLABS_PRIVATE_API_ENDPOINT)
logger.debug(f"Using private API endpoint: {_private_api_endpoint}")
_public_api_endpoint = Validations.get_or_default(ConfigVars.WHYLABS_HOST)

return _private_api_endpoint or _public_api_endpoint

def get_default_org_id(self) -> str:
return Validations.require(ConfigVars.ORG_ID)

Expand Down

0 comments on commit 4c041da

Please sign in to comment.