diff --git a/lib/fog/aws/requests/compute/describe_classic_link_instances.rb b/lib/fog/aws/requests/compute/describe_classic_link_instances.rb index 14a912304..93877f097 100644 --- a/lib/fog/aws/requests/compute/describe_classic_link_instances.rb +++ b/lib/fog/aws/requests/compute/describe_classic_link_instances.rb @@ -53,7 +53,7 @@ module Fog response.status = 200 instance_data = instances.collect do |instance| - groups = self.data[:security_groups].select {|name, data| instance['classicLinkSecurityGroups'].include?(data['groupId'])}.values + groups = self.data[:security_groups].values.select {|data| instance['classicLinkSecurityGroups'].include?(data['groupId'])} { 'instanceId' => instance['instanceId'], 'vpcId' => instance['classicLinkVpcId'],