Skip to content

Commit

Permalink
squashme: fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
olevski committed May 20, 2022
1 parent 105fa67 commit e60e9f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion renku/core/session/notebook_service.py
Expand Up @@ -45,7 +45,7 @@ def _get_token(client: LocalClient, renku_url: str) -> Tuple[str, bool]:
"""
registered_token = client.get_value(section="http", key=urllib.parse.urlparse(renku_url).netloc)
if not registered_token:
return _get_anonymous_credentials(renku_url=renku_url), False
return _get_anonymous_credentials(client=client, renku_url=renku_url), False
return registered_token, True


Expand Down
2 changes: 1 addition & 1 deletion renku/core/session/utils.py
Expand Up @@ -49,5 +49,5 @@ def get_image_repository_host() -> Optional[str]:
"""Derive the hostname for the gitlab container registry."""
renku_url = get_renku_url()
if not renku_url:
return
return None
return "registry." + urllib.parse.urlparse(renku_url).netloc

0 comments on commit e60e9f5

Please sign in to comment.