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:
parent
7b0c0a3729
commit
cc8b04aa6f
1 changed files with 1 additions and 1 deletions
|
@ -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'],
|
||||
|
|
Loading…
Reference in a new issue