lib/fog/aws/models/compute/vpc.rb in fog-1.8.0 vs lib/fog/aws/models/compute/vpc.rb in fog-1.9.0
- old
+ new
@@ -30,11 +30,11 @@
#
def destroy
requires :id
- connection.delete_vpc(id)
+ service.delete_vpc(id)
true
end
# Create a vpc
#
@@ -48,10 +48,10 @@
#
def save
requires :cidr_block
- data = connection.create_vpc(cidr_block).body['vpcSet'].first
+ data = service.create_vpc(cidr_block).body['vpcSet'].first
new_attributes = data.reject {|key,value| key == 'requestId'}
merge_attributes(new_attributes)
true
end