X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/aa8c90a19bea26953f104b9b78751780dab2a101..f30f230da23603e3c7598205219ce01e9820c470:/cookbooks/networking/libraries/ipaddresses.rb?ds=sidebyside 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