Support python3
Bug #1691881 reported by
James Hebden
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Ceilometer Agent Charm |
Fix Released
|
Medium
|
David Ames |
Bug Description
When using python3, the charm encounters errors related to type mismatch.
subprocess requires an extra decode of return values to address this, ala:
https:/
Related branches
lp:~thedac/charm-helpers/lp1691881
- Alex Kavanagh: Approve
- Chris MacNaughton (community): Approve
-
Diff: 16 lines (+3/-1)1 file modifiedcharmhelpers/contrib/network/ip.py (+3/-1)
tags: | added: adrastea |
Changed in charm-ceilometer-agent: | |
assignee: | nobody → David Ames (thedac) |
Changed in charm-ceilometer-agent: | |
status: | In Progress → Fix Committed |
Changed in charm-ceilometer-agent: | |
milestone: | none → 17.08 |
Changed in charm-ceilometer-agent: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi James,
Thanks for the fix. Do we need the 2nd decode("utf-8")?
I ran a quick test on xenial: http:// paste.ubuntu. com/24729399/
and one decode seemed to do the trick. I believe unicode for python2 is the same as str in python3.
Corey