Skip to content

Commit

Permalink
Set XPath more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
atoy40 committed Nov 28, 2023
1 parent 19eb2de commit 938d3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/libvirt_network/virsh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def content
xml.root.elements.delete('//mac')
# remove the connections
xml.root.attributes.delete('connections')
xml.root.elements.each("//forward[@mode='passthrough']/interface") do |el|
xml.root.elements.each("//forward/interface[@connections]") do |el|
el.attributes.delete('connections');
end
formatter = REXML::Formatters::Pretty.new(2)
Expand Down

0 comments on commit 938d3ef

Please sign in to comment.