Skip to content

Commit

Permalink
Add token-slot option to pool start
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Jan 14, 2025
1 parent 2205c59 commit 53b9131
Showing 1 changed file with 34 additions and 11 deletions.
45 changes: 34 additions & 11 deletions src/stratis_cli/_parser/_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,39 @@ def verify(self, namespace, parser):
{
"help": "Start a pool.",
"groups": [
(
"Unlock Method",
{
"description": (
"Arguments to allow specifying an unlock method when pool is encrypted"
),
"mut_ex_args": [
(
False,
[
(
"--unlock-method",
{
"choices": list(UnlockMethod),
"help": "Method to use to unlock the pool",
"type": UnlockMethod,
},
),
(
"--token-slot",
{
"help": (
"token slot; alternative way of specifying "
"an unlock method; for V2 pools only"
),
"type": ensure_nat,
},
),
],
),
],
},
),
(
"Key Specification",
{
Expand All @@ -371,7 +404,7 @@ def verify(self, namespace, parser):
),
],
},
)
),
],
"mut_ex_args": [
(
Expand All @@ -391,16 +424,6 @@ def verify(self, namespace, parser):
],
),
],
"args": [
(
"--unlock-method",
{
"choices": list(UnlockMethod),
"help": "Method to use to unlock the pool if encrypted.",
"type": UnlockMethod,
},
),
],
"func": PoolActions.start_pool,
},
),
Expand Down

0 comments on commit 53b9131

Please sign in to comment.