Convert all EC2Response Mixins to subclasses.
This commit is contained in:
parent
fefc12457e
commit
ec938ef904
11 changed files with 22 additions and 12 deletions
|
|
@ -1,10 +1,11 @@
|
|||
from jinja2 import Template
|
||||
|
||||
from moto.core.responses import BaseResponse
|
||||
from moto.ec2.models import ec2_backend
|
||||
from moto.ec2.utils import instance_ids_from_querystring, image_ids_from_querystring
|
||||
|
||||
|
||||
class AmisResponse(object):
|
||||
class AmisResponse(BaseResponse):
|
||||
def create_image(self):
|
||||
name = self.querystring.get('Name')[0]
|
||||
if "Description" in self.querystring:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue