Skip to content

Commit

Permalink
Update the search for the xml element we use for SCAP
Browse files Browse the repository at this point in the history
The format of the xml file has changed so the existing search was
not finding any results.

This search works as of scap-security-guide version 0.1.46

https://bugzilla.redhat.com/show_bug.cgi?id=1769901
  • Loading branch information
carbonin committed Dec 12, 2019
1 parent 2132eb1 commit 87289ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linux_admin/scap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def write_ds_xml(io, profile_xml)
end

def model_xml_element(doc)
doc.css("//nist_list|model", "nist_list" => "http://checklists.nist.gov/xccdf/1.2").detect { |model| model.namespace.prefix.nil? }
doc.xpath("//ns10:model").first
end
end
end

0 comments on commit 87289ec

Please sign in to comment.