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
1 changed files with 1 additions and 1 deletions

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