Set tags in response, fix tests for tags
This commit is contained in:
parent
3c38a551b2
commit
b3096af098
3 changed files with 31 additions and 19 deletions
|
|
@ -60,7 +60,7 @@ class AutoScalingResponse(BaseResponse):
|
|||
load_balancers=self._get_multi_param('LoadBalancerNames.member'),
|
||||
placement_group=self._get_param('PlacementGroup'),
|
||||
termination_policies=self._get_multi_param('TerminationPolicies.member'),
|
||||
tags=self._get_multi_param('Tags.member'),
|
||||
tags=self._get_list_prefix('Tags.member'),
|
||||
)
|
||||
template = self.response_template(CREATE_AUTOSCALING_GROUP_TEMPLATE)
|
||||
return template.render()
|
||||
|
|
@ -86,7 +86,6 @@ class AutoScalingResponse(BaseResponse):
|
|||
load_balancers=self._get_multi_param('LoadBalancerNames.member'),
|
||||
placement_group=self._get_param('PlacementGroup'),
|
||||
termination_policies=self._get_multi_param('TerminationPolicies.member'),
|
||||
tags=self._get_multi_param('Tags.member'),
|
||||
)
|
||||
template = self.response_template(UPDATE_AUTOSCALING_GROUP_TEMPLATE)
|
||||
return template.render()
|
||||
|
|
@ -237,7 +236,17 @@ DESCRIBE_AUTOSCALING_GROUPS_TEMPLATE = """<DescribeAutoScalingGroupsResponse xml
|
|||
<AutoScalingGroups>
|
||||
{% for group in groups %}
|
||||
<member>
|
||||
<Tags/>
|
||||
<Tags>
|
||||
{% for tag in group.tags %}
|
||||
<member>
|
||||
<ResourceType>{{ tag.resource_type }}</ResourceType>
|
||||
<ResourceId>{{ tag.resource_id }}</ResourceId>
|
||||
<PropagateAtLaunch>{{ tag.propagate_at_launch }}</PropagateAtLaunch>
|
||||
<Key>{{ tag.key }}</Key>
|
||||
<Value>{{ tag.value }}</Value>
|
||||
</member>
|
||||
{% endfor %}
|
||||
</Tags>
|
||||
<SuspendedProcesses/>
|
||||
<AutoScalingGroupName>{{ group.name }}</AutoScalingGroupName>
|
||||
<HealthCheckType>{{ group.health_check_type }}</HealthCheckType>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue