# File lib/fog/aws/requests/compute/describe_vpcs.rb, line 42 def describe_vpcs(filters = {}) vpcs = self.data[:vpcs] vpcs = apply_tag_filters(vpcs, filters, 'vpcId') # Transition from pending to available vpcs.each do |vpc| case vpc['state'] when 'pending' vpc['state'] = 'available' end end if filters['vpc-id'] vpcs = vpcs.reject {|vpc| vpc['vpcId'] != filters['vpc-id']} end vpcs.each do |vpc| tags = self.data[:tag_sets][vpc['vpcId']] vpc.merge!('tagSet' => tags) if tags end Excon::Response.new( :status => 200, :body => { 'requestId' => Fog::AWS::Mock.request_id, 'vpcSet' => vpcs } ) end