Skip to content

Commit

Permalink
fix(add_upgrade_boot_entry): convert arg list into a tuple
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
Michal Hecko committed Dec 16, 2024
1 parent 3c3421a commit c7ceb0d
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 tuple(args) == ('A', 'B')


def test_get_device_uuid(monkeypatch):
Expand Down

0 comments on commit c7ceb0d

Please sign in to comment.