Skip to content

Commit 1dac8d1

Browse files
authored
Merge pull request #1226 from mulkieran/rename-identifier-for-clarity
Rename identifier for clarity
2 parents 423ae20 + 067659d commit 1dac8d1

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/stratis_cli/_actions/_list_filesystem.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def list_filesystems(
5858
)
5959
requires_unique = fs_id is not None
6060

61-
path_to_name = dict(
61+
pool_object_path_to_pool_name = dict(
6262
(path, MOPool(info).Name())
6363
for path, info in pools(props=props).search(managed_objects)
6464
)
@@ -74,13 +74,13 @@ def list_filesystems(
7474
klass = Table(
7575
uuid_formatter,
7676
filesystems_with_props,
77-
path_to_name,
77+
pool_object_path_to_pool_name,
7878
)
7979
else:
8080
klass = Detail(
8181
uuid_formatter,
8282
filesystems_with_props,
83-
path_to_name,
83+
pool_object_path_to_pool_name,
8484
)
8585

8686
klass.display()
@@ -95,7 +95,7 @@ def __init__(
9595
self,
9696
uuid_formatter: Callable,
9797
filesystems_with_props: List[Any],
98-
path_to_name: Dict[ObjectPath, String],
98+
pool_object_path_to_pool_name: Dict[ObjectPath, String],
9999
):
100100
"""
101101
Initialize a List object.
@@ -105,7 +105,7 @@ def __init__(
105105
"""
106106
self.uuid_formatter = uuid_formatter
107107
self.filesystems_with_props = filesystems_with_props
108-
self.path_to_name = path_to_name
108+
self.pool_object_path_to_pool_name = pool_object_path_to_pool_name
109109

110110
@abstractmethod
111111
def display(self):
@@ -141,7 +141,7 @@ def filesystem_size_quartet(dbus_props):
141141

142142
tables = [
143143
(
144-
self.path_to_name[mofilesystem.Pool()],
144+
self.pool_object_path_to_pool_name[mofilesystem.Pool()],
145145
mofilesystem.Name(),
146146
filesystem_size_quartet(mofilesystem),
147147
mofilesystem.Devnode(),
@@ -187,7 +187,7 @@ def display(self):
187187

188188
print(f"UUID: {self.uuid_formatter(fs.Uuid())}")
189189
print(f"Name: {fs.Name()}")
190-
print(f"Pool: {self.path_to_name[fs.Pool()]}")
190+
print(f"Pool: {self.pool_object_path_to_pool_name[fs.Pool()]}")
191191
print()
192192
print(f"Device: {fs.Devnode()}")
193193
print()

0 commit comments

Comments
 (0)