Skip to content

Commit e62c42c

Browse files
committed
Fix formatting in pubkey
1 parent 7a86ea1 commit e62c42c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

checks/tasks/tls/tasks_reports.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright: 2022, ECP, NLnet Labs and the Internet.nl contributors
22
# SPDX-License-Identifier: Apache-2.0
3+
import itertools
34
import time
45
from timeit import default_timer as timer
56

@@ -483,10 +484,11 @@ def annotate_and_combine_all(good_items, sufficient_items, bad_items, phaseout_i
483484
pass
484485
else:
485486
cert_pubkey_all = annotate_and_combine(dttls.cert_pubkey_bad, dttls.cert_pubkey_phase_out)
487+
cert_pubkey_format = list(itertools.chain(*zip(cert_pubkey_all[0], cert_pubkey_all[1])))
486488
if len(dttls.cert_pubkey_bad) > 0:
487-
category.subtests["cert_pubkey"].result_bad(cert_pubkey_all)
489+
category.subtests["cert_pubkey"].result_bad(cert_pubkey_format)
488490
elif len(dttls.cert_pubkey_phase_out) > 0:
489-
category.subtests["cert_pubkey"].result_phase_out(cert_pubkey_all)
491+
category.subtests["cert_pubkey"].result_phase_out(cert_pubkey_format)
490492
else:
491493
category.subtests["cert_pubkey"].result_good()
492494

@@ -643,10 +645,11 @@ def annotate_and_combine_all(good_items, sufficient_items, bad_items, phaseout_i
643645
pass
644646
else:
645647
cert_pubkey_all = annotate_and_combine(dttls.cert_pubkey_bad, dttls.cert_pubkey_phase_out)
648+
cert_pubkey_format = list(itertools.chain(*zip(cert_pubkey_all[0], cert_pubkey_all[1])))
646649
if len(dttls.cert_pubkey_bad) > 0:
647-
category.subtests["cert_pubkey"].result_bad(cert_pubkey_all)
650+
category.subtests["cert_pubkey"].result_bad(cert_pubkey_format)
648651
elif len(dttls.cert_pubkey_phase_out) > 0:
649-
category.subtests["cert_pubkey"].result_phase_out(cert_pubkey_all)
652+
category.subtests["cert_pubkey"].result_phase_out(cert_pubkey_format)
650653
else:
651654
category.subtests["cert_pubkey"].result_good()
652655

0 commit comments

Comments
 (0)