fix(sap): linter fix

This commit is contained in:
Vasilisa Parshikova 2025-12-24 12:50:49 +04:00 committed by Sameer Kankute
parent afe3cc64c0
commit 5ac885bab4
No known key found for this signature in database

View file

@ -212,7 +212,7 @@ def fetch_credentials(
> default
"""
config = init_conf(profile)
env = os.environ # snapshot for testability
env = dict(os.environ) # snapshot for testability
service_like = service_key or sap_service_key or _load_json_env(SERVICE_KEY_ENV_VAR)
@ -220,8 +220,8 @@ def fetch_credentials(
out: Dict[str, str] = {}
for cred in CREDENTIAL_VALUES:
value = _resolve_value(cred, kwargs=kwargs, env=env, config=config, service_like=service_like, # type: ignore
vcap_service=vcap_service) # type: ignore
value = _resolve_value(cred, kwargs=kwargs, env=env, config=config, service_like=service_like,
vcap_service=vcap_service)
if value is None:
continue
if cred.transform_fn: