1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

fix tests on 1.8.7

Hash#select used to return an array
This commit is contained in:
Frederick Cheung 2015-01-11 21:09:09 +00:00
parent 7b0c0a3729
commit cc8b04aa6f

View file

@ -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'],