Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
renatav committed Nov 9, 2023
1 parent 80ac9b1 commit 4d842d7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions taf/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ def _sort_roles(roles):
raise SigningError("Could not load keys of new roles")


def _load_from_keystore(taf_repo, keystore_path, key_name, num_of_signatures, scheme, role):
def _load_from_keystore(
taf_repo, keystore_path, key_name, num_of_signatures, scheme, role
):
if keystore_path is None:
return None
if (keystore_path / key_name).is_file():
Expand Down Expand Up @@ -242,7 +244,9 @@ def _load_and_append_yubikeys(
# there is no need to ask the user if they want to load more key, try to load from keystore
if num_of_signatures < len(keystore_files):
key_name = keystore_files[num_of_signatures]
key = _load_from_keystore(taf_repo, keystore_path, key_name, num_of_signatures, scheme, role)
key = _load_from_keystore(
taf_repo, keystore_path, key_name, num_of_signatures, scheme, role
)
if key is not None:
keys.append(key)
num_of_signatures += 1
Expand Down

0 comments on commit 4d842d7

Please sign in to comment.