Skip to content

Commit

Permalink
nethsm list-keys: Print enum values
Browse files Browse the repository at this point in the history
Instead of formatting the enum variant directly, print its value.
  • Loading branch information
robin-nitrokey committed Nov 27, 2023
1 parent 037e1d0 commit cfbc6d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pynitrokey/cli/nethsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ def list_keys(ctx: Context, details: bool, filter: Optional[str]) -> None:
data.append(
[
key_id,
key.type,
", ".join([str(m) for m in key.mechanisms]),
key.type.value,
", ".join([m.value for m in key.mechanisms]),
key.operations,
", ".join(key.tags) if key.tags is not None else "",
]
Expand Down

0 comments on commit cfbc6d6

Please sign in to comment.