]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/libraries/interfaces.rb
Fix some issues identified by rubocop
[chef.git] / cookbooks / networking / libraries / interfaces.rb
index cc9c11a232a33b4795bb2bf252e33dfe48f8f0ea..67b2bd2373176e2fd69ab93697170d2de6025f77 100644 (file)
@@ -6,7 +6,7 @@ class Chef
       networking = construct_attributes[:networking] || {}
       networking_interfaces = networking[:interfaces] || []
 
-      networking_interfaces.each do |name,interface|
+      networking_interfaces.each_value  do |interface|
         if options[:role].nil? or interface[:role].to_s == options[:role].to_s
           if options[:family].nil? or interface[:family].to_s == options[:family].to_s
             if block.nil?