Univention Bugzilla – Bug 53359
Migrate univention-apache to Python 3
Last modified: 2021-11-03 17:01:33 CET
univention-apache should be migrated to be Python 3 compatible. services/univention-apache/univention-add-vhost
Please change the "def ucr():" into "from univention.config_registry import ucr" (which is automatically a singleton which is invoked only on first use)
The package has been migrated to Python 3. Changed ucr function with univention.config_registry
Traceback (most recent call last): File "/usr/sbin/univention-add-vhost", line 355, in <module> main() File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke return callback(*args, **kwargs) File "/usr/sbin/univention-add-vhost", line 135, in main needs_dns_reload |= create_dns_entry(udm, host) File "/usr/sbin/univention-add-vhost", line 253, in create_dns_entry superordinate = superordinate_of_fqdn(udm, fqdn) File "/usr/sbin/univention-add-vhost", line 232, in superordinate_of_fqdn known_zones = forward_zones(udm) File "/usr/sbin/univention-add-vhost", line 226, in forward_zones reverse=True TypeError: 'cmp' is an invalid keyword argument for sort()
univention-apache (12.0.0-3) ed453acebfe9 | Bug #53359: version bump fd546470152d | fixup! Bug #53359: Migrate univention-apache to Python 3
OK: cmp() replacement.
<https://errata.software-univention.de/#/?erratum=5.0x137>