示例#1
0
 def delete_subnet(self):
     subnet_id = self.querystring.get('SubnetId')[0]
     subnet = ec2_backend.delete_subnet(subnet_id)
     if subnet:
         template = Template(DELETE_SUBNET_RESPONSE)
         return template.render(subnet=subnet)
     else:
         return "", dict(status=404)
示例#2
0
文件: subnets.py 项目: invenia/moto
 def delete_subnet(self):
     subnet_id = self.querystring.get('SubnetId')[0]
     subnet = ec2_backend.delete_subnet(subnet_id)
     template = Template(DELETE_SUBNET_RESPONSE)
     return template.render(subnet=subnet)
示例#3
0
文件: subnets.py 项目: clorenz7/moto
 def delete_subnet(self):
     subnet_id = self.querystring.get("SubnetId")[0]
     subnet = ec2_backend.delete_subnet(subnet_id)
     template = Template(DELETE_SUBNET_RESPONSE)
     return template.render(subnet=subnet)