aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-11-24 09:11:56 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-11-24 09:11:56 -0500
commit2797a19eadfce8c01c3a184991c3a6507f35ab05 (patch)
treeedf1a2327ed27a602ad7978abb6016258a9fd467
parent521d4712ef531d13a68760bcd666f9056a14348e (diff)
downloadb4-2797a19eadfce8c01c3a184991c3a6507f35ab05.tar.gz
Fix crash due to incorrect array length
Don't use self.expected, but actual array length when preparing attestation report. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index edd6c0c..b8d5b7d 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -493,7 +493,7 @@ class LoreSeries:
logger.critical('WARNING: Unable to add your Signed-off-by: git returned no user.name or user.email')
addmysob = False
- attdata = [(None, None)] * self.expected
+ attdata = [(None, None)] * len(self.patches[1:])
attpolicy = config['attestation-policy']
if config['attestation-checkmarks'] == 'fancy':