curtin_userdata fails on 1.10 because of python3 bytes object nonsense
Bug #1548467 reported by
Jeff Lane
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas-cert-server |
Fix Released
|
Medium
|
Jeff Lane |
Bug Description
https:/
curtin_userdata has some python2 code that doesn't work on 1.10 and Xenial due to the switch to Python3 in MAAS there.
This fails because
cache_output = check_output(
now returns a bytes object, rather than strings.
Simple fix, decode the output to utf-8 when we run check_output.
Related branches
lp:~bladernr/maas-cert-server/1548467-python3-curtin_userdata-fix
- Jeff Lane : Approve
-
Diff: 25 lines (+2/-2)2 files modifiedpreseed/curtin_userdata_cert (+1/-1)
preseed/curtin_userdata_ocp (+1/-1)
Changed in maas-cert-server: | |
status: | Fix Released → Fix Committed |
Changed in maas-cert-server: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Tested fix on both 1.10/Xenial and 1.9/Trusty, and it seems to work just fine.