From 64ffbbcce2ae78eef13dadbaf377e2b86b924fc0 Mon Sep 17 00:00:00 2001 From: Anthony Hinsinger Date: Tue, 28 Nov 2023 21:45:25 +0100 Subject: [PATCH] Fixed pdk code conventions --- lib/puppet/provider/libvirt_network/virsh.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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