Skip to content

Commit

Permalink
fix(add_upgrade_boot_entry): convert arg list into a tuple (#1313)
Browse files Browse the repository at this point in the history
Convert collected rd.lvm args into a tuple before trying to make
a set with one of the elements being the args. As list is not hashable,
this causes the actor to crash.
  • Loading branch information
MichalHe authored Jan 28, 2025
1 parent bfcf59e commit c861416
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def _get_rdlvm_arg_values():
api.current_logger().debug('Collected the following rd.lvm.lv args that are undesired for the squashfs: %s',
rd_lvm_values)

return rd_lvm_values
return tuple(rd_lvm_values)


def construct_cmdline_args_for_livemode():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def test_get_rdlvm_arg_values(monkeypatch):

args = addupgradebootentry._get_rdlvm_arg_values()

assert args == ['A', 'B']
assert args == ('A', 'B')


def test_get_device_uuid(monkeypatch):
Expand Down

0 comments on commit c861416

Please sign in to comment.