Univention Bugzilla – Bug 50010
ucr commit /config/file should print a warning if there is no template installed/registered for that file
Last modified: 2021-12-08 17:17:10 CET
If there is no template for the destination file registered, 'ucr commit' should print a warning about that. Of course it would be ideal if it also points to the related package.
Ok, you can see this when the file is not written: root@master10:~# ucr commit /etc/samba/unregistered.file root@master10:~# ucr commit /etc/samba/smb.conf Multifile: /etc/samba/smb.conf
https://git.knut.univention.de/univention/ucs/-/merge_requests/152
f046e4211b | 0010 - ucr commit /config/file prints a warning if there is no template 7b375418d0 | 0010: Advisory update
While running: ucr commit There is an error showing that not all pending_handlers have to_file attribute. New MR: https://git.knut.univention.de/univention/ucs/-/merge_requests/161
Here is the original stack trace: Traceback (most recent call last): File "/usr/sbin/ucr", line 67, in <module> sys.exit(ub.main(convertToUtf8(sys.argv[1:]))) File "/usr/lib/python3/dist-packages/univention/config_registry/frontend.py", line 828, in main result = handler_func(args, cmd_opts) File "/usr/lib/python3/dist-packages/univention/config_registry/frontend.py", line 310, in handler_commit handlers.commit(ucr, args) File "/usr/lib/python3/dist-packages/univention/config_registry/handler.py", line 1141, in commit for fname in set(_filelist).difference(set(h.to_file for h in pending_handlers)): File "/usr/lib/python3/dist-packages/univention/config_registry/handler.py", line 1141, in <genexpr> for fname in set(_filelist).difference(set(h.to_file for h in pending_handlers)): AttributeError: 'ConfigHandlerModule' object has no attribute 'to_file'
7b375418d0 | Advisory update 8d22ed1a24 | ucr commit /config/file prints a warning if there is no template abf81b2177 | Advisory update
Verified: * Code review * Package update * Functional test * Advisory
b3e65c1168 | Advisory line length
<https://errata.software-univention.de/#/?erratum=5.0x168>