From d45ec9e535573eb25b64e7e3ec7fe6ababec4417 Mon Sep 17 00:00:00 2001 From: Sean Handley Date: Wed, 3 Dec 2014 19:18:59 +0000 Subject: [PATCH] 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') --- lib/fog/openstack/models/network/floating_ips.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/openstack/models/network/floating_ips.rb b/lib/fog/openstack/models/network/floating_ips.rb index e27e322ea..a97253bef 100644 --- a/lib/fog/openstack/models/network/floating_ips.rb +++ b/lib/fog/openstack/models/network/floating_ips.rb @@ -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