the probe_types argument of probert.storage.Storage.probe takes a set, not a list

This means my careful code to do rich probing of block devices and fall
back to simple probing doesn't work! Oh well, at least the fix is
trivial.

Seen in the logs from this bug report:

    https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1839529
This commit is contained in:
Michael Hudson-Doyle 2019-08-09 14:37:09 +12:00
parent 66defaa5ad
commit 8097ad62bf
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class FilesystemController(BaseController):
def _reprobe(self):
self._probe_state = ProbeState.REPROBING
self.run_in_bg(
lambda: self._bg_probe(["blockdev"]),
lambda: self._bg_probe({"blockdev"}),
lambda fut: self._probed(fut, True),
)