Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
renatav committed Oct 16, 2024
1 parent 81f3942 commit aff9cea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion taf/api/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def create_repository(
if not _check_if_can_create_repository(auth_repo):
return

if not keystore:
if not keystore and auth_repo.path is not None:
keystore = find_keystore(auth_repo.path)
roles_key_infos_dict, keystore, skip_prompt = _initialize_roles_and_keystore(
roles_key_infos, keystore
Expand Down
2 changes: 1 addition & 1 deletion taf/api/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def _initialize_roles_and_keystore_for_existing_repo(
roles_key_infos_dict = _enter_roles_infos(None, roles_key_infos)
roles_keys_data = from_dict(roles_key_infos_dict, RolesKeysData)
keystore = keystore or roles_keys_data.keystore
if keystore is None:
if keystore is None and path is not None:
keystore = find_keystore(Path(path))
roles_keys_data.keystore = keystore
return roles_keys_data
Expand Down
2 changes: 1 addition & 1 deletion taf/api/utils/_conf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from taf.log import taf_logger
from pathlib import Path
from typing import Optional, Union
from typing import Optional


def find_taf_directory(auth_repo_path: Path) -> Optional[Path]:
Expand Down

0 comments on commit aff9cea

Please sign in to comment.