Univention Bugzilla – Bug 46553
two+ Python syntax errors in UCR conffiles
Last modified: 2020-06-22 13:40:05 CEST
Created attachment 9453 [details] ucs-lint - should be added to ucslint <stdin>:18:32: invalid syntax print 'BarBaz=%s' configRegistry.get('bar/baz/value', 'MyDefault').lower() CRITICAL:FAIL: ./packaging/univention-package-template/conffiles/etc/ucsversion <stdin>:13: undefined name 'protocols' CRITICAL:FAIL: ./base/univention-base-files/conffiles/etc/ssh/sshd_config Plus several cosmetic issues due to unused imports: <stdin>:8: 'univention.appcenter.app_cache.Apps' imported but unused CRITICAL:FAIL: ./management/univention-appcenter/conffiles/etc/univention/service.info/services/univention-appcenter.cfg <stdin>:8: 'os.path' imported but unused CRITICAL:FAIL: ./management/univention-ldap/conffiles/etc/ldap/slapd.conf.d/10univention-ldap-server_schema <stdin>:9: 'os' imported but unused CRITICAL:FAIL: ./management/univention-management-console/conffiles/usr/share/univention-management-console/meta.json <stdin>:8: 'sys' imported but unused CRITICAL:FAIL: ./base/univention-updater/conffiles/etc/apt/mirror.list <stdin>:8: 'sys' imported but unused CRITICAL:FAIL: ./base/univention-updater/conffiles/etc/apt/sources.list.d/15_ucs-online-version.list <stdin>:8: 'sys' imported but unused CRITICAL:FAIL: ./base/univention-updater/conffiles/etc/apt/sources.list.d/20_ucs-online-component.list <stdin>:8: 're' imported but unused CRITICAL:FAIL: ./mail/univention-mail-postfix/conffiles/etc/postfix/transport.d/10_base <stdin>:9: 'grp' imported but unused CRITICAL:FAIL: ./mail/univention-mail-dovecot/conffiles/etc/dovecot/conf.d/10-mail.conf <stdin>:8: 'pwd' imported but unused CRITICAL:FAIL: ./mail/univention-mail-dovecot/conffiles/etc/dovecot/conf.d/10-mail.conf <stdin>:10: 'sys' imported but unused CRITICAL:FAIL: ./mail/univention-mail-dovecot/conffiles/var/lib/dovecot/sieve/default.sieve <stdin>:8: 'os.path' imported but unused CRITICAL:FAIL: ./services/univention-samba4wins/conffiles/etc/ldap/slapd.conf.d/13univention-samba4wins.schema
univention-base-files 6b128c8b7021 | Bug #46553: remove UCR marker which are python comments and therefore not evaluated univention-package-template 49604c6de8f9 | Bug #46553: fix typo in UCR template file
Created attachment 10257 [details] ucslint flake8 check for conffiles/
*** This bug has been marked as a duplicate of bug 49704 ***