OpenSCAP / openscap-daemon

Manages continuous scans of your infrastructure
https://www.open-scap.org/tools/openscap-daemon
GNU Lesser General Public License v2.1
106 stars 32 forks source link

Fix 'Description' field in JSON results #98

Closed jan-cerny closed 7 years ago

jan-cerny commented 7 years ago

The XCCDF description element usually contains child elements, that are used for formating. To get the whole description, we cannot use the 'text' attribute, because it contains only text before the first child and the rest is omitted. Instead, we must use tostring() method to serialize all the description text.

jan-cerny commented 7 years ago

doesn't work in Pyhton3, I will fix this fix 🥇

jan-cerny commented 7 years ago

Works in Python3 now.

mpreisler commented 7 years ago

ACK