lib/fog/linode/models/compute/ips.rb in fog-maestrodev-1.7.0.20121114190951 vs lib/fog/linode/models/compute/ips.rb in fog-maestrodev-1.8.0.20130109172219
- old
+ new
@@ -25,12 +25,12 @@
super({ :server => server }.merge!(attributes))
end
private
def ips(linode_id, id=nil)
- connection.linode_ip_list(linode_id, id).body['DATA'].map { |ip| map_ip ip }
+ service.linode_ip_list(linode_id, id).body['DATA'].map { |ip| map_ip ip }
end
-
+
def map_ip(ip)
ip = ip.each_with_object({}) { |(k, v), h| h[k.downcase.to_sym] = v }
ip.merge! :id => ip[:ipaddressid], :ip => ip[:ipaddress], :public => ip[:ispublic]==1
end
end