Convert all EC2Response Mixins to subclasses.

This commit is contained in:
Steve Pulec 2013-12-29 08:25:13 -05:00
commit ec938ef904
11 changed files with 22 additions and 12 deletions

View file

@ -1,9 +1,10 @@
from jinja2 import Template
from moto.core.responses import BaseResponse
from moto.ec2.models import ec2_backend
class Subnets(object):
class Subnets(BaseResponse):
def create_subnet(self):
vpc_id = self.querystring.get('VpcId')[0]
cidr_block = self.querystring.get('CidrBlock')[0]