lib/fog/hp/requests/network/disassociate_floating_ip.rb in fog-1.22.0 vs lib/fog/hp/requests/network/disassociate_floating_ip.rb in fog-1.22.1

- old
+ new

@@ -1,9 +1,8 @@ module Fog module HP class Network - class Real # Associate port with floating ip # # ==== Parameters # * 'floating_ip_id'<~String>: - UUId of the floating IP address to associate with @@ -43,11 +42,11 @@ end class Mock def disassociate_floating_ip(floating_ip_id, options = {}) response = Excon::Response.new - if list_floating_ips.body['floatingips'].detect {|_| _['id'] == floating_ip_id} + if list_floating_ips.body['floatingips'].find {|_| _['id'] == floating_ip_id} response.status = 200 data = { 'id' => floating_ip_id, 'port_id' => nil, 'router_id' => Fog::HP::Mock.uuid.to_s, @@ -63,9 +62,8 @@ else raise Fog::HP::Network::NotFound end end end - end end end