Univention Bugzilla – Bug 36923
sysinfo/system: KeyError: 'mem'
Last modified: 2015-01-09 11:37:21 CET
Created attachment 6453 [details] patch Traceback: Die Ausführung des Kommandos sysinfo/system ist fehlgeschlagen: Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/management/console/modules/__init__.py", line 218, in execute func( request ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/sysinfo/__init__.py", line 119, in get_system_info if result['mem']: KeyError: 'mem' Attached a patch for correct error handling. Why was 'mem' no in univention-system-info output? Maybe it was but contained a ':' which leads to a ValueError which was swallowed.
The output parsing of univention-system-info could fail if multiple colons (':') were contained in the output. Therefore the keys 'mem' and 'Temp' may not be in the result dict. A followup error which was not in the patch has also been fixed → wrong reference was used, request → result. Fix: svn r56966 YAML: YAML: 2014-12-18-univention-system-info.yaml
fixed YAML OK
http://errata.univention.de/ucs/4.0/11.html
Reported again, 4.0-0 errata0 (Walle) Remark: njkvcnzJDVNSZ:NVDn