insights-core
insights-core copied to clipboard
Custom built/third party RPMs may not be parsed correctly
When core collection is turned off or unsupported, if a custom or third party RPM is installed that does not include the expected fields it will be parsed incorrectly by _parse_line. Here is an example line:
perl-IO-Socket-IP-0.21-5.el7.noarch\tFri Apr 13 12:24:53 2018\t1505822292\tRSA/SHA256, Tue Sep 19 05:07:42 2017, Key ID 199e2f91fd431d51\t(none)
Expected parts are
'installtime', 'buildtime', 'vendor', 'buildserver', 'pgpsig', 'pgpsig_short'
_parse_line
yields:
{'name': 'perl-IO-Socket-IP',
'version': '0.21',
'release': '5.el7',
'arch': 'noarch',
'epoch': '0',
'installtime': 'Fri Apr 13 12:24:53 2018',
'buildtime': '1505822292',
'vendor': 'RSA/SHA256, Tue Sep 19 05:07:42 2017, Key ID 199e2f91fd431d51',
'buildserver': '(none)'}