return delete_instance operation
This commit is contained in:
parent
5fb43ee7b6
commit
0ab5edc962
@ -103,8 +103,9 @@ class FakeStackSet(BaseModel):
|
||||
|
||||
self.instances.delete(accounts, regions)
|
||||
|
||||
self._create_operation(operation_id=operation_id, action='DELETE',
|
||||
operation = self._create_operation(operation_id=operation_id, action='DELETE',
|
||||
status='SUCCEEDED', accounts=accounts, regions=regions)
|
||||
return operation
|
||||
|
||||
def update_instances(self, accounts, regions, parameters, operation_id=None):
|
||||
if not operation_id:
|
||||
|
@ -368,10 +368,10 @@ class CloudFormationResponse(BaseResponse):
|
||||
stackset_name = self._get_param('StackSetName')
|
||||
accounts = self._get_multi_param('Accounts.member')
|
||||
regions = self._get_multi_param('Regions.member')
|
||||
self.cloudformation_backend.delete_stack_instances(stackset_name, accounts, regions)
|
||||
operation = self.cloudformation_backend.delete_stack_instances(stackset_name, accounts, regions)
|
||||
|
||||
template = self.response_template(DELETE_STACK_INSTANCES_TEMPLATE)
|
||||
return template.render()
|
||||
return template.render(operation=operation)
|
||||
|
||||
def describe_stack_set(self):
|
||||
stackset_name = self._get_param('StackSetName')
|
||||
@ -806,7 +806,7 @@ LIST_STACK_INSTANCES_TEMPLATE = """<ListStackInstancesResponse xmlns="http://int
|
||||
|
||||
DELETE_STACK_INSTANCES_TEMPLATE = """<DeleteStackInstancesResponse xmlns="http://internal.amazon.com/coral/com.amazonaws.maestro.service.v20160713/">
|
||||
<DeleteStackInstancesResult>
|
||||
<OperationId>d76a070d-279a-45f3-b9b4-example</OperationId>
|
||||
<OperationId>{{ operation.OperationId }}</OperationId>
|
||||
</DeleteStackInstancesResult>
|
||||
<ResponseMetadata>
|
||||
<RequestId>e5325090-66f6-4ecd-a531-example</RequestId>
|
||||
|
Loading…
Reference in New Issue
Block a user