Merge lp:~smoser/cloud-init/trunk.dmidecode-null into lp:~cloud-init-dev/cloud-init/trunk
Proposed by
Scott Moser
on 2016-03-10
| Status: | Merged |
|---|---|
| Merged at revision: | 1180 |
| Proposed branch: | lp:~smoser/cloud-init/trunk.dmidecode-null |
| Merge into: | lp:~cloud-init-dev/cloud-init/trunk |
| Diff against target: |
57 lines (+19/-3) 3 files modified
ChangeLog (+1/-0) cloudinit/util.py (+9/-3) tests/unittests/test_util.py (+9/-0) |
| To merge this branch: | bzr merge lp:~smoser/cloud-init/trunk.dmidecode-null |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ryan Harper | 2016-03-10 | Approve on 2016-03-10 | |
|
Review via email:
|
|||
Commit Message
dmi data: fix failure of reading dmi data for unset dmi values
it is not uncommon to find dmi data in /sys full of 'ff'. utf-8
decoding of those would fail, causing warning and stacktrace.
Return '.' instead of \xff. This maps to what dmidecode would return
$ dmidecode --string system-product-name
To post a comment you must log in.
lp:~smoser/cloud-init/trunk.dmidecode-null
updated
on 2016-03-10
- 1180. By Scott Moser on 2016-03-10
-
dmi data: fix failure of reading dmi data for unset dmi values
it is not uncommon to find dmi data in /sys full of 'ff'. utf-8
decoding of those would fail, causing warning and stacktrace.Return '.' instead of \xff. This maps to what dmidecode would return
$ dmidecode --string system-product-name
.............. ....... ....... .....
lp:~smoser/cloud-init/trunk.dmidecode-null
updated
on 2016-03-10
- 1181. By Scott Moser on 2016-03-10
-
improve comment


We might want that as well in the test-case; but easily enough found in the code comments.