1
0
Fork 0
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:
Sean Handley 2014-12-03 19:18:59 +00:00
parent ad636d2ed7
commit d45ec9e535

View file

@ -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