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:
parent
bef47ce960
commit
5d2e48f589
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue