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

[openstack|compute] ensures we clear ipaddresses cache upload reload

This commit is contained in:
Ohad Levy 2013-02-27 11:25:52 +02:00 committed by Ohad Levy
parent bef47ce960
commit 5d2e48f589

View file

@ -92,6 +92,11 @@ module Fog
@all_addresses ||= service.list_all_addresses.body["floating_ips"].select{|data| data['instance_id'] == id}
end
def reload
@all_addresses = nil
super
end
# returns all ip_addresses for a given instance
# this includes both the fixed ip(s) and the floating ip(s)
def ip_addresses