]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/libraries/ipaddresses.rb
Add initial version of prometheus cookbook
[chef.git] / cookbooks / networking / libraries / ipaddresses.rb
index d31d885f995076af73eef0d034023e4f5a97cb07..9fde5610be525b6a40bf91d8bb418e13f4e5e347 100644 (file)
@@ -6,6 +6,8 @@ class Chef
       interfaces(options).each do |interface|
         address = interface[:public_address] || interface[:address]
 
+        next if address.nil?
+
         if block.nil?
           addresses << address
         else