Skip to content

Commit

Permalink
chore: return yubike_ids None instead of [] when a role should not be…
Browse files Browse the repository at this point in the history
… signed using yubikeys
  • Loading branch information
renatav committed Nov 10, 2023
1 parent b7effb5 commit 1f65d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taf/models/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def is_yubikey(self):
@property
def yubikey_ids(self):
if not self.is_yubikey:
return []
return None
if self.yubikeys:
return self.yubikeys
if self.number == 1:
Expand Down

0 comments on commit 1f65d08

Please sign in to comment.