From 067659d7a2147fb66f3e86c258e4b08ea743e152 Mon Sep 17 00:00:00 2001 From: mulhern Date: Mon, 29 Sep 2025 13:53:33 -0400 Subject: [PATCH] Rename identifier for clarity Signed-off-by: mulhern --- src/stratis_cli/_actions/_list_filesystem.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/stratis_cli/_actions/_list_filesystem.py b/src/stratis_cli/_actions/_list_filesystem.py index 2db84d112..cd2252c37 100644 --- a/src/stratis_cli/_actions/_list_filesystem.py +++ b/src/stratis_cli/_actions/_list_filesystem.py @@ -58,7 +58,7 @@ def list_filesystems( ) requires_unique = fs_id is not None - path_to_name = dict( + pool_object_path_to_pool_name = dict( (path, MOPool(info).Name()) for path, info in pools(props=props).search(managed_objects) ) @@ -74,13 +74,13 @@ def list_filesystems( klass = Table( uuid_formatter, filesystems_with_props, - path_to_name, + pool_object_path_to_pool_name, ) else: klass = Detail( uuid_formatter, filesystems_with_props, - path_to_name, + pool_object_path_to_pool_name, ) klass.display() @@ -95,7 +95,7 @@ def __init__( self, uuid_formatter: Callable, filesystems_with_props: List[Any], - path_to_name: Dict[ObjectPath, String], + pool_object_path_to_pool_name: Dict[ObjectPath, String], ): """ Initialize a List object. @@ -105,7 +105,7 @@ def __init__( """ self.uuid_formatter = uuid_formatter self.filesystems_with_props = filesystems_with_props - self.path_to_name = path_to_name + self.pool_object_path_to_pool_name = pool_object_path_to_pool_name @abstractmethod def display(self): @@ -141,7 +141,7 @@ def filesystem_size_quartet(dbus_props): tables = [ ( - self.path_to_name[mofilesystem.Pool()], + self.pool_object_path_to_pool_name[mofilesystem.Pool()], mofilesystem.Name(), filesystem_size_quartet(mofilesystem), mofilesystem.Devnode(), @@ -187,7 +187,7 @@ def display(self): print(f"UUID: {self.uuid_formatter(fs.Uuid())}") print(f"Name: {fs.Name()}") - print(f"Pool: {self.path_to_name[fs.Pool()]}") + print(f"Pool: {self.pool_object_path_to_pool_name[fs.Pool()]}") print() print(f"Device: {fs.Devnode()}") print()