Skip to content

Commit

Permalink
tuf.api: fix version check in metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Lock <jlock@vmware.com>
  • Loading branch information
joshuagl committed Jul 1, 2020
1 parent d58a944 commit 2758f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tuf/api/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, consistent_snapshot: bool = True, expiration: relativedelta =
self.keyring = keyring
self.expiration = expiration

assert version > 1, f'{version} < 1'
assert version >= 1, f'{version} < 1'
self.version = version

# And you would use this method to populate it from a file.
Expand Down

0 comments on commit 2758f48

Please sign in to comment.