Skip to content

Commit 75d8215

Browse files
committed
@pcrespov review: style
1 parent aae90a9 commit 75d8215

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

services/director/src/simcore_service_director/registry_proxy.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ServiceType(enum.Enum):
3939

4040

4141
async def _basic_auth_registry_request(
42-
app: web.Application, path: str, method: str, **kwargs
42+
app: web.Application, path: str, method: str, **session_kwargs
4343
) -> Tuple[Dict, Dict]:
4444
if not config.REGISTRY_URL:
4545
raise exceptions.DirectorException("URL to registry is not defined")
@@ -60,13 +60,13 @@ async def _basic_auth_registry_request(
6060
session = app[APP_CLIENT_SESSION_KEY]
6161
try:
6262
async with session.request(
63-
method.lower(), url, auth=auth, **kwargs
63+
method.lower(), url, auth=auth, **session_kwargs
6464
) as response:
6565
if response.status == HTTPStatus.UNAUTHORIZED:
6666
logger.debug("Registry unauthorized request: %s", await response.text())
6767
# basic mode failed, test with other auth mode
6868
resp_data, resp_headers = await _auth_registry_request(
69-
url, method, response.headers, session, **kwargs
69+
url, method, response.headers, session, **session_kwargs
7070
)
7171

7272
elif response.status == HTTPStatus.NOT_FOUND:
@@ -173,13 +173,13 @@ async def registry_request(
173173
path: str,
174174
method: str = "GET",
175175
no_cache: bool = False,
176-
**kwargs,
176+
**session_kwargs,
177177
) -> Tuple[Dict, Dict]:
178178
logger.debug(
179179
"Request to registry: path=%s, method=%s. no_cache=%s", path, method, no_cache
180180
)
181181
return await cache_requests(_basic_auth_registry_request, no_cache)(
182-
app, path, method, **kwargs
182+
app, path, method, **session_kwargs
183183
)
184184

185185

0 commit comments

Comments
 (0)