EB: pass through SolutionStackName
This commit is contained in:
parent
7f387b0bb9
commit
8f51bd6116
@ -11,10 +11,12 @@ class FakeEnvironment(BaseModel):
|
|||||||
self,
|
self,
|
||||||
application,
|
application,
|
||||||
environment_name,
|
environment_name,
|
||||||
|
solution_stack_name,
|
||||||
tags,
|
tags,
|
||||||
):
|
):
|
||||||
self.application = weakref.proxy(application) # weakref to break circular dependencies
|
self.application = weakref.proxy(application) # weakref to break circular dependencies
|
||||||
self.environment_name = environment_name
|
self.environment_name = environment_name
|
||||||
|
self.solution_stack_name = solution_stack_name
|
||||||
self.tags = tags
|
self.tags = tags
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -35,10 +37,6 @@ class FakeEnvironment(BaseModel):
|
|||||||
def platform_arn(self):
|
def platform_arn(self):
|
||||||
return 'TODO' # TODO
|
return 'TODO' # TODO
|
||||||
|
|
||||||
@property
|
|
||||||
def solution_stack_name(self):
|
|
||||||
return 'TODO' # TODO
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def region(self):
|
def region(self):
|
||||||
return self.application.region
|
return self.application.region
|
||||||
@ -53,6 +51,7 @@ class FakeApplication(BaseModel):
|
|||||||
def create_environment(
|
def create_environment(
|
||||||
self,
|
self,
|
||||||
environment_name,
|
environment_name,
|
||||||
|
solution_stack_name,
|
||||||
tags,
|
tags,
|
||||||
):
|
):
|
||||||
if environment_name in self.environments:
|
if environment_name in self.environments:
|
||||||
@ -61,6 +60,7 @@ class FakeApplication(BaseModel):
|
|||||||
env = FakeEnvironment(
|
env = FakeEnvironment(
|
||||||
application=self,
|
application=self,
|
||||||
environment_name=environment_name,
|
environment_name=environment_name,
|
||||||
|
solution_stack_name=solution_stack_name,
|
||||||
tags=tags,
|
tags=tags,
|
||||||
)
|
)
|
||||||
self.environments[environment_name] = env
|
self.environments[environment_name] = env
|
||||||
|
@ -31,7 +31,6 @@ class EBResponse(BaseResponse):
|
|||||||
|
|
||||||
def create_environment(self):
|
def create_environment(self):
|
||||||
application_name = self._get_param('ApplicationName')
|
application_name = self._get_param('ApplicationName')
|
||||||
environment_name = self._get_param('EnvironmentName')
|
|
||||||
try:
|
try:
|
||||||
app = self.backend.applications[application_name]
|
app = self.backend.applications[application_name]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
@ -41,7 +40,8 @@ class EBResponse(BaseResponse):
|
|||||||
|
|
||||||
tags = tags_from_query_string(self.querystring, prefix="Tags.member")
|
tags = tags_from_query_string(self.querystring, prefix="Tags.member")
|
||||||
env = app.create_environment(
|
env = app.create_environment(
|
||||||
environment_name=environment_name,
|
environment_name=self._get_param('EnvironmentName'),
|
||||||
|
solution_stack_name=self._get_param('SolutionStackName'),
|
||||||
tags=tags,
|
tags=tags,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user