]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/libraries/interfaces.rb
Fix more rubocop detected style issues
[chef.git] / cookbooks / networking / libraries / interfaces.rb
index 67b2bd2373176e2fd69ab93697170d2de6025f77..fa0a93c7d7347ed63f53b1adb08bf5aa849134ee 100644 (file)
@@ -7,8 +7,8 @@ class Chef
       networking_interfaces = networking[:interfaces] || []
 
       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 options[:role].nil? || interface[:role].to_s == options[:role].to_s
+          if options[:family].nil? || interface[:family].to_s == options[:family].to_s
             if block.nil?
               interfaces << interface
             else