lib/fog/aws/requests/compute/delete_vpc.rb in fog-1.4.0 vs lib/fog/aws/requests/compute/delete_vpc.rb in fog-1.5.0
- old
+ new
@@ -32,10 +32,11 @@
class Mock
def delete_vpc(vpc_id)
Excon::Response.new.tap do |response|
if vpc_id
response.status = 200
-
+ self.data[:vpcs].reject! { |v| v['vpcId'] == vpc_id }
+
response.body = {
'requestId' => Fog::AWS::Mock.request_id,
'return' => true
}
else