Skip to content

Commit

Permalink
^fs_name^snapshot_name in some places
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <amulhern@redhat.com>
  • Loading branch information
mulkieran committed Jul 24, 2024
1 parent 5dbe94b commit 2118423
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/stratis_cli/_actions/_logical.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ def schedule_revert(namespace):
.search(managed_objects)
)
(fs_object_path, fs_info) = next(
filesystems(props={"Name": namespace.fs_name, "Pool": pool_object_path})
filesystems(
props={"Name": namespace.snapshot_name, "Pool": pool_object_path}
)
.require_unique_match(True)
.search(managed_objects)
)
Expand Down Expand Up @@ -382,7 +384,9 @@ def cancel_revert(namespace):
.search(managed_objects)
)
(fs_object_path, fs_info) = next(
filesystems(props={"Name": namespace.fs_name, "Pool": pool_object_path})
filesystems(
props={"Name": namespace.snapshot_name, "Pool": pool_object_path}
)
.require_unique_match(True)
.search(managed_objects)
)
Expand Down
2 changes: 1 addition & 1 deletion src/stratis_cli/_parser/_logical.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def verify(self, namespace, parser):
},
),
(
"fs_name",
"snapshot_name",
{"help": "Name of the snapshot filesystem"},
),
],
Expand Down

0 comments on commit 2118423

Please sign in to comment.