Skip to content

Commit

Permalink
stash
Browse files Browse the repository at this point in the history
  • Loading branch information
mulkieran committed Feb 5, 2025
1 parent 6aae09b commit 7ff5096
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/stratis_cli/_actions/_list_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
from ._utils import (
EncryptionInfoClevis,
EncryptionInfoKeyDescription,
ClevisInfo,
PoolFeature,
StoppedPool,
fetch_stopped_pools_property,
Expand Down Expand Up @@ -130,7 +131,7 @@ def list_pools(uuid_formatter, *, stopped=False, selection=None):
klass.display()


def _clevis_to_str(clevis_info): # pragma: no cover
def _clevis_to_str(clevis_info: ClevisInfo): # pragma: no cover
"""
:param ClevisInfo clevis_info: the Clevis info to stringify
:return: a string that represents the clevis info
Expand Down Expand Up @@ -306,13 +307,13 @@ def _print_detail_view(self, mopool, size_change_codes):

if metadata_version is MetadataVersion.V1: # pragma: no cover
key_description_str = _non_existent_or_inconsistent_to_str(
EncryptionInfoKeyDescription(mopool.KeyDescription())
EncryptionInfoKeyDescription(mopool.KeyDescriptions())
)
print(f" Key Description: {key_description_str}")

clevis_info_str = _non_existent_or_inconsistent_to_str(
EncryptionInfoClevis(mopool.ClevisInfo()),
interp=_clevis_to_str, # pyright: ignore [ reportArgumentType ]
EncryptionInfoClevis(mopool.ClevisInfos()),
interp=_clevis_to_str,
)
print(f" Clevis Configuration: {clevis_info_str}")
elif metadata_version is MetadataVersion.V2:
Expand Down

0 comments on commit 7ff5096

Please sign in to comment.