From 98e2d39afc4de65363000334a24d892239fce5dc Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Wed, 10 Jul 2024 17:38:29 +0200 Subject: [PATCH] CLI: Don't iterate over IntFlag instance This isn't supported on older Python versions. --- ykman/_cli/info.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ykman/_cli/info.py b/ykman/_cli/info.py index 937ce682..e43b2e38 100644 --- a/ykman/_cli/info.py +++ b/ykman/_cli/info.py @@ -200,7 +200,11 @@ def info(ctx, check_fips): if info.fips_capable: click.echo() click.echo("FIPS approved applications") - data = {c.display_name: c in info.fips_approved for c in info.fips_capable} + data = { + c.display_name: c in info.fips_approved + for c in CAPABILITY + if c in info.fips_capable + } click.echo("\n".join(pretty_print(data))) if check_fips: