Skip to content

Commit

Permalink
Merge pull request #216 from carbonin/update_scap_xml_element_search
Browse files Browse the repository at this point in the history
Update the search for the xml element we use for SCAP
  • Loading branch information
bdunne committed Dec 12, 2019
2 parents 2132eb1 + 87289ec commit aef4e3e
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 aef4e3e

Please sign in to comment.