X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3a4b1c2078cd515e93a5f1bf8967f380fbd1646f..6157bab7abeae44abae9b58f7358779a86ad6437:/cookbooks/networking/libraries/ipaddresses.rb?ds=inline diff --git a/cookbooks/networking/libraries/ipaddresses.rb b/cookbooks/networking/libraries/ipaddresses.rb index 5eb54265e..51ef152b5 100644 --- a/cookbooks/networking/libraries/ipaddresses.rb +++ b/cookbooks/networking/libraries/ipaddresses.rb @@ -7,7 +7,7 @@ class Chef if block.nil? addresses << interface[:address] else - block.call(interface[:address]) + yield interface[:address] end end