Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Lock <jlock@vmware.com>
  • Loading branch information
mnm678 and joshuagl authored Jul 23, 2020
1 parent 494d570 commit 8fe9ef7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tuf/client/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ def _import_delegations(self, parent_role):
key, _ = securesystemslib.keys.format_metadata_to_key(keyinfo, keyid)

key['keyid'] = keyid
tuf.keydb.add_key(key, keyid=None, repository_name=self.repository_name)
tuf.keydb.add_key(key, repository_name=self.repository_name)

except tuf.exceptions.KeyAlreadyExistsError:
pass
Expand Down
2 changes: 1 addition & 1 deletion tuf/keydb.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def create_keydb_from_root_metadata(root_metadata, repository_name='default'):
# keyids, otherwise add_key() will have no reference to it.
try:
key_dict['keyid'] = keyid
add_key(key_dict, keyid=None, repository_name=repository_name)
add_key(key_dict, repository_name=repository_name)

# Although keyid duplicates should *not* occur (unique dict keys), log a
# warning and continue. However, 'key_dict' may have already been
Expand Down

0 comments on commit 8fe9ef7

Please sign in to comment.