From 73fda7283137ab6504b10e0ce81012d6641467ed Mon Sep 17 00:00:00 2001 From: Bryan Paxton Date: Fri, 26 Dec 2014 03:47:41 -0600 Subject: [PATCH] Remove duplicate network_name hash key --- lib/fog/ecloud/models/compute/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/ecloud/models/compute/server.rb b/lib/fog/ecloud/models/compute/server.rb index 6ce6865..1369848 100644 --- a/lib/fog/ecloud/models/compute/server.rb +++ b/lib/fog/ecloud/models/compute/server.rb @@ -243,7 +243,7 @@ def delete_ip(options) } end#.delete_if { |ip| ip[:href] == options[:href] && ip[:name] == options[:network_name] } end - slice_ips.map! { |i| {:name => i.address.name, :network_name => i.network.name, :network_name => i.network.name } }.delete_if { |ip| ip[:name] == options[:ip] } + slice_ips.map! { |i| {:name => i.address.name, :network_name => i.network.name } }.delete_if { |ip| ip[:name] == options[:ip] } slice_ips.each do |ip| slice_networks.each do |network| if network[:name] == ip[:network_name]