Skip to content

Commit

Permalink
Fixed issue with loading XML source from a stream instead of from a f…
Browse files Browse the repository at this point in the history
…ile.
  • Loading branch information
groboclown committed Sep 9, 2020
1 parent af09b17 commit af9b7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dagda/vulnDB/ext_source_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def get_rhsa_and_rhba_lists_from_file(bz2_file):
rhsa_info_id_list = []
rhba_info_list = []
rhba_info_id_list = []
root = ET.parse(xml_file_content).getroot().find('{http://oval.mitre.org/XMLSchema/oval-definitions-5}definitions')
root = ET.fromstring(xml_file_content).find('{http://oval.mitre.org/XMLSchema/oval-definitions-5}definitions')
for entry in root.findall('{http://oval.mitre.org/XMLSchema/oval-definitions-5}definition'):
# Init
metadata = entry.find('{http://oval.mitre.org/XMLSchema/oval-definitions-5}metadata')
Expand Down

0 comments on commit af9b7dd

Please sign in to comment.