diff --git a/lib/puppet/provider/libvirt_network/virsh.rb b/lib/puppet/provider/libvirt_network/virsh.rb index 82d33a6..957865a 100644 --- a/lib/puppet/provider/libvirt_network/virsh.rb +++ b/lib/puppet/provider/libvirt_network/virsh.rb @@ -93,8 +93,8 @@ 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'); + xml.root.elements.each('//forward/interface[@connections]') do |el| + el.attributes.delete('connections') end formatter = REXML::Formatters::Pretty.new(2) formatter.compact = true