diff --git a/auth_lib/__init__.py b/auth_lib/__init__.py index 2ea2439..7162def 100644 --- a/auth_lib/__init__.py +++ b/auth_lib/__init__.py @@ -1,4 +1,4 @@ from .methods import AuthLib -__version__ = '2024.04.25.2' +__version__ = '2024.04.25.4' __all__ = ["AuthLib"] diff --git a/auth_lib/airflow/auth_api.py b/auth_lib/airflow/auth_api.py index bad4cd2..88da8c0 100644 --- a/auth_lib/airflow/auth_api.py +++ b/auth_lib/airflow/auth_api.py @@ -22,8 +22,8 @@ @lru_cache def get_auth_api() -> AuthLib: auth_api = AuthLib( - auth_url=conf.get("api", "auth_url") or os.getenv("AUTH_URL") or DEFAULT_AUTH_URL, - userdata_url=conf.get("api", "userdata_url") or os.getenv("USERDATA_URL") or DEFAULT_USERDATA_URL, + auth_url=conf.get("api", "auth_url", fallback=None) or os.getenv("AUTH_URL") or DEFAULT_AUTH_URL, + userdata_url=conf.get("api", "userdata_url", fallback=None) or os.getenv("USERDATA_URL") or DEFAULT_USERDATA_URL, ) return auth_api