1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #907 from jnewland/dont_monkey_patch_ipaddr

add a method to IPAddr instead of breaking a useful one
This commit is contained in:
Dylan Egan 2012-05-17 06:43:31 -07:00
commit 3f8d1b4c90

View file

@ -2,7 +2,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'ecloud'))
require 'ipaddr'
class IPAddr
def mask
def mask_string
_to_string(@mask_addr)
end
end
@ -367,7 +367,7 @@ module Fog
end
def netmask
self[:netmask] || subnet_ipaddr.mask
self[:netmask] || subnet_ipaddr.mask_string
end
def dns