From: Tom Hughes Date: Sat, 18 Mar 2023 11:47:23 +0000 (+0000) Subject: Enable implicit conversion of addresses to strings X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/7186c3c88d0caffd39f3cd8060ca13c082a61da7 Enable implicit conversion of addresses to strings --- diff --git a/cookbooks/networking/libraries/ipaddresses.rb b/cookbooks/networking/libraries/ipaddresses.rb index 89b20fe9e..5f746c9aa 100644 --- a/cookbooks/networking/libraries/ipaddresses.rb +++ b/cookbooks/networking/libraries/ipaddresses.rb @@ -25,6 +25,10 @@ module OpenStreetMap address end + def to_str + address + end + def subnet "#{@network}/#{@prefix}" end