Univention Bugzilla – Bug 51098
univention-management-console: make UCR templates python3-compatible
Last modified: 2020-04-22 15:30:43 CEST
The UCR templates of univention-management-console have to be python3-compatible.
univention-management-console.yaml dbe3cf60b473 | YAML Bug #51098 univention-management-console (11.0.4-59) d2824180c68e | Bug #51098: make UCR templates compatible to python3
"usr/share/univention-management-console/meta.json" is not python3 compatible ("from univention.lib.misc import custom_username" Needs to be commented out for testing) ''' File: /usr/share/univention-management-console/meta.json Traceback (most recent call last): File "<stdin>", line 128, in <module> File "<stdin>", line 88, in get_ec2_address File "<stdin>", line 49, in get_ip_address struct.error: argument for 's' must be a bytes object ''' "struct.pack('256s', ifname[:15])" -> "struct.pack('256s', ifname[:15].encode('utf8'))" ? and one iteritems :) ''' File: /usr/share/univention-management-console/meta.json Traceback (most recent call last): File "<stdin>", line 135, in <module> File "<stdin>", line 125, in get_login_links AttributeError: 'ConfigRegistry' object has no attribute 'iteritems' '''
Otherwise it looks good
univention-management-console (11.0.4-60) dfea9a6d6dc8 | Bug #51098: fix python3 compatibility in meta.json
- Changes -> OK - yaml -> OK - jenkins -> OK -> Verified
<http://errata.software-univention.de/ucs/4.4/548.html>