Merge ~raharper/curtin:fix/tolerate-missing-probe-data-keys into curtin:master
Proposed by
Ryan Harper
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Ryan Harper | ||||
Approved revision: | 9a329203cd4e00938744d4c64009803012cbc61e | ||||
Merge reported by: | Server Team CI bot | ||||
Merged at revision: | not available | ||||
Proposed branch: | ~raharper/curtin:fix/tolerate-missing-probe-data-keys | ||||
Merge into: | curtin:master | ||||
Diff against target: |
165 lines (+48/-19) 2 files modified
curtin/storage_config.py (+19/-11) tests/unittests/test_storage_config.py (+29/-8) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
Michael Hudson-Doyle | Approve | ||
curtin developers | Pending | ||
Review via email: mp+375463@code.launchpad.net |
Commit message
block-discover: handle partial probe data
The probe_data provided to curtin may only include a subset of
the types of data that curtin knows how to parse. Currently if
one of the types is not present in the probe_data, curtin raises
Exceptions which prevent callers from getting any storage config
from curtin. This branch allows curtin to handle missing data
and will log the errors but not raise Exceptions, leaving the
caller to handle and decide what to do with the storage config
produced.
LP: #1852351
To post a comment you must log in.
Thanks, just a couple of stray debugging prints but otherwise looks good to me.