From 1f65d08d40fb6a2e87c2a32c05d8ba8e8134705e Mon Sep 17 00:00:00 2001 From: Renata Date: Fri, 10 Nov 2023 16:38:56 +0100 Subject: [PATCH] chore: return yubike_ids None instead of [] when a role should not be signed using yubikeys --- taf/models/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taf/models/types.py b/taf/models/types.py index 85a0bc7f..e811d0cd 100644 --- a/taf/models/types.py +++ b/taf/models/types.py @@ -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: