示例#1
0
 def delete_vpc(self):
     vpc_id = self.querystring.get('VpcId')[0]
     vpc = ec2_backend.delete_vpc(vpc_id)
     if vpc:
         template = Template(DELETE_VPC_RESPONSE)
         return template.render(vpc=vpc)
     else:
         return "", dict(status=404)
示例#2
0
文件: vpcs.py 项目: dobesv/moto
 def delete_vpc(self):
     vpc_id = self.querystring.get('VpcId')[0]
     vpc = ec2_backend.delete_vpc(vpc_id)
     template = Template(DELETE_VPC_RESPONSE)
     return template.render(vpc=vpc)
示例#3
0
文件: vpcs.py 项目: invenia/moto
 def delete_vpc(self):
     vpc_id = self.querystring.get('VpcId')[0]
     vpc = ec2_backend.delete_vpc(vpc_id)
     template = Template(DELETE_VPC_RESPONSE)
     return template.render(vpc=vpc)