From 7186c3c88d0caffd39f3cd8060ca13c082a61da7 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 18 Mar 2023 11:47:23 +0000 Subject: [PATCH] Enable implicit conversion of addresses to strings --- cookbooks/networking/libraries/ipaddresses.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5