Skip to content

Commit

Permalink
Change for CreatePool and StartPool API changes
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Jan 21, 2025
1 parent f27085e commit 8b8a6c2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions testlib/dbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ def pool_start(id_string, id_type):
StratisDbus._MNGR_IFACE,
)

return manager_iface.StartPool(id_string, id_type, (False, ""), (False, 0))
return manager_iface.StartPool(
id_string, id_type, (False, (False, 0)), (False, 0)
)

@staticmethod
def pool_stop(id_string, id_type):
Expand Down Expand Up @@ -325,8 +327,8 @@ def pool_create(
return iface.CreatePool(
pool_name,
devices,
(True, key_desc) if key_desc is not None else (False, ""),
(True, clevis_info) if clevis_info is not None else (False, ("", "")),
[] if key_desc is None else [((False, 0), key_desc)],
[] if clevis_info is None else [((False, 0), clevis_info)],
(False, 0),
(False, ""),
(False, 0),
Expand Down

0 comments on commit 8b8a6c2

Please sign in to comment.