]> git.openstreetmap.org Git - chef.git/commitdiff
Enable implicit conversion of addresses to strings
authorTom Hughes <tom@compton.nu>
Sat, 18 Mar 2023 11:47:23 +0000 (11:47 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 18 Mar 2023 11:47:23 +0000 (11:47 +0000)
cookbooks/networking/libraries/ipaddresses.rb

index 89b20fe9e9d13a81bcb4c4eb2bfc4e85c0b5727a..5f746c9aa1e4bd754c684a95037ae3b88930ddf8 100644 (file)
@@ -25,6 +25,10 @@ module OpenStreetMap
           address
         end
 
+        def to_str
+          address
+        end
+
         def subnet
           "#{@network}/#{@prefix}"
         end