Refactoring: Changed remaining check parameters starting with an 's' to the new rules...
[check_mk.git] / .werks / 5584
blob35a49f1a5d78c74ddef7ccf45cdec3273532548b
1 Title: Fixed exception when "Export List of Software packages as CSV file" is enabled
2 Level: 1
3 Component: inv
4 Class: fix
5 Compatible: compat
6 Edition: cre
7 State: unknown
8 Version: 1.5.0i2
9 Date: 1513692003
11 When having the export of the software packages list via CSV enabled while execution
12 of the HW/SW inventory, an exception could happen in case the inventory data contained
13 special characters. The exception looked like this on the command line:
15 Traceback (most recent call last):
16   File "/omd/sites/stable/share/check_mk/modules/check_mk.py", line 4811, in <module>
17     do_inv(hostnames)
18   File "/omd/sites/stable/share/check_mk/modules/inventory.py", line 180, in do_inv
19     do_inv_for(hostname)
20   File "/omd/sites/stable/share/check_mk/modules/inventory.py", line 267, in do_inv_for
21     run_inv_export_hooks(hostname, g_inv_tree)
22   File "/omd/sites/stable/share/check_mk/modules/inventory.py", line 383, in run_inv_export_hooks
23     inv_export[hookname]["export_function"](hostname, params, tree)
24   File "/omd/sites/stable/share/check_mk/inventory/export_software_csv", line 67, in inv_export_software_csv
25     out.write("%s\n" % separator.join(line))
26 UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 1: ordinal not in range(128)