Merge lp:~nuclearbob/utah/media-info-mini into lp:utah
Proposed by
Max Brustkern
Status: | Merged |
---|---|
Approved by: | Javier Collado |
Approved revision: | 778 |
Merged at revision: | 784 |
Proposed branch: | lp:~nuclearbob/utah/media-info-mini |
Merge into: | lp:utah |
Diff against target: |
33 lines (+1/-15) 1 file modified
utah/client/common.py (+1/-15) |
To merge this branch: | bzr merge lp:~nuclearbob/utah/media-info-mini |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Javier Collado (community) | Approve | ||
Review via email: mp+138976@code.launchpad.net |
Description of the change
When running on a mini image, media info was missing, and this generated a type error when we tried to put None into the yaml, so I've changed it to use 'unknown' instead. When running pyflakes, I found there were two get_arch functions in that file, so I removed the one that wasn't currently in use.
To post a comment you must log in.
What was the output of `platform. machine( )` call in that case?
According to the python documentation, when the machine type cannot be
determined, the empty string is returned. Hence, maybe the `arches` dictionary
in the `get_arch` function has to be updated and the 'unknown' value should be
inserted for the empty string (if another non empty value is returned, then we
should consider adding it to the `arches` dictionary as well).