Skip to content

Commit

Permalink
Condense FilesystemMetadata() call
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Gurney <[email protected]>
  • Loading branch information
bgurney-rh committed Aug 6, 2024
1 parent 2edc3a5 commit 407ef58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion testlib/dbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,11 @@ def fs_get_metadata(pool_path, *, fs_name=None, current=True):

fs_name = (False, "") if fs_name is None else (True, fs_name)

return iface.FilesystemMetadata(fs_name, current, timeout=StratisDbus._TIMEOUT)
return iface.FilesystemMetadata(
(False, "") if fs_name is None else (True, fs_name),
current,
timeout=StratisDbus._TIMEOUT,
)

@staticmethod
def fs_create(pool_path, fs_name, *, fs_size=None, fs_sizelimit=None):
Expand Down

0 comments on commit 407ef58

Please sign in to comment.