_parse_block_device returns inconsistent types
Bug #1732413 reported by
Liam Young
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Cinder Charm |
Fix Released
|
Medium
|
Liam Young |
Bug Description
_parse_block_device returns a tuple. Depending on the code path sometimes it returns (str, int) and sometimes it returns (str, str)
Changed in charm-cinder: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Liam Young (gnuoy) |
milestone: | none → 17.11 |
Changed in charm-cinder: | |
status: | Confirmed → In Progress |
Changed in charm-cinder: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/520053 /git.openstack. org/cgit/ openstack/ charm-cinder/ commit/ ?id=d8d180aaaf2 2fcf355aa6fa62d 5fb65de77255ae
Committed: https:/
Submitter: Zuul
Branch: master
commit d8d180aaaf22fcf 355aa6fa62d5fb6 5de77255ae
Author: Liam Young <email address hidden>
Date: Wed Nov 15 11:39:07 2017 +0000
Fix _parse_block_device to return (str, int)
_parse_ block_device was returning inconsistent types. This seems
to have been working by accident under py2 but fails for py3.
This change fixes _parse_block_device to always returns (str, int)
Closes-Bug: #1732413 fdf599ef8e70fed 14816df3e26
Change-Id: If0bfb4030ab9ac