mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Fix deprecation warning.
[fog][DEPRECATION] #connection is deprecated, use #service instead (/home/rails/stronghold/vendor/bundle/ruby/2.1.0/gems/fog-1.22.1/lib/fog/openstack/models/network/floating_ips.rb:23:in `get')
This commit is contained in:
parent
ad636d2ed7
commit
d45ec9e535
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ module Fog
|
|||
end
|
||||
|
||||
def get(floating_network_id)
|
||||
if floating_ip = connection.get_floating_ip(floating_network_id).body['floatingip']
|
||||
if floating_ip = service.get_floating_ip(floating_network_id).body['floatingip']
|
||||
new(floating_ip)
|
||||
end
|
||||
rescue Fog::Network::OpenStack::NotFound
|
||||
|
|
Loading…
Reference in a new issue