Some EC2 fixes for alternative regions.
This commit is contained in:
parent
0cae959f05
commit
2d65b0a020
16 changed files with 153 additions and 154 deletions
|
|
@ -2,7 +2,6 @@ from __future__ import unicode_literals
|
|||
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
|
||||
|
||||
|
||||
|
|
@ -10,7 +9,7 @@ class General(BaseResponse):
|
|||
def get_console_output(self):
|
||||
self.instance_ids = instance_ids_from_querystring(self.querystring)
|
||||
instance_id = self.instance_ids[0]
|
||||
instance = ec2_backend.get_instance(instance_id)
|
||||
instance = self.ec2_backend.get_instance(instance_id)
|
||||
template = Template(GET_CONSOLE_OUTPUT_RESULT)
|
||||
return template.render(instance=instance)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue