diff --git a/lib/puppet/provider/libvirt_network/virsh.rb b/lib/puppet/provider/libvirt_network/virsh.rb index 7988f72..e4c0e81 100644 --- a/lib/puppet/provider/libvirt_network/virsh.rb +++ b/lib/puppet/provider/libvirt_network/virsh.rb @@ -93,6 +93,9 @@ def content xml.root.elements.delete('//mac') # remove the connections xml.root.attributes.delete('connections') + xml.root.elements.each('//forward/interface[@connections]') do |el| + el.attributes.delete('connections') + end formatter = REXML::Formatters::Pretty.new(2) formatter.compact = true output = ''.dup