Fix retrieval of autoscaling group instances.
This commit is contained in:
parent
5e35348c0d
commit
ada20cea61
@ -258,7 +258,17 @@ DESCRIBE_AUTOSCALING_GROUPS_TEMPLATE = """<DescribeAutoScalingGroupsResponse xml
|
|||||||
<CreatedTime>2013-05-06T17:47:15.107Z</CreatedTime>
|
<CreatedTime>2013-05-06T17:47:15.107Z</CreatedTime>
|
||||||
<EnabledMetrics/>
|
<EnabledMetrics/>
|
||||||
<LaunchConfigurationName>{{ group.launch_config_name }}</LaunchConfigurationName>
|
<LaunchConfigurationName>{{ group.launch_config_name }}</LaunchConfigurationName>
|
||||||
<Instances/>
|
<Instances>
|
||||||
|
{% for instance in group.instances %}
|
||||||
|
<member>
|
||||||
|
<HealthStatus>HEALTHY</HealthStatus>
|
||||||
|
<AvailabilityZone>us-east-1e</AvailabilityZone>
|
||||||
|
<InstanceId>{{ instance.id }}</InstanceId>
|
||||||
|
<LaunchConfigurationName>{{ instance.autoscaling_group.launch_config_name }}</LaunchConfigurationName>
|
||||||
|
<LifecycleState>InService</LifecycleState>
|
||||||
|
</member>
|
||||||
|
{% endfor %}
|
||||||
|
</Instances>
|
||||||
<DesiredCapacity>{{ group.desired_capacity }}</DesiredCapacity>
|
<DesiredCapacity>{{ group.desired_capacity }}</DesiredCapacity>
|
||||||
<AvailabilityZones>
|
<AvailabilityZones>
|
||||||
{% for availability_zone in group.availability_zones %}
|
{% for availability_zone in group.availability_zones %}
|
||||||
|
@ -40,6 +40,7 @@ def test_create_autoscaling_group():
|
|||||||
group.desired_capacity.should.equal(2)
|
group.desired_capacity.should.equal(2)
|
||||||
group.max_size.should.equal(2)
|
group.max_size.should.equal(2)
|
||||||
group.min_size.should.equal(2)
|
group.min_size.should.equal(2)
|
||||||
|
group.instances.should.have.length_of(2)
|
||||||
group.vpc_zone_identifier.should.equal('subnet-1234abcd')
|
group.vpc_zone_identifier.should.equal('subnet-1234abcd')
|
||||||
group.launch_config_name.should.equal('tester')
|
group.launch_config_name.should.equal('tester')
|
||||||
group.default_cooldown.should.equal(60)
|
group.default_cooldown.should.equal(60)
|
||||||
|
Loading…
Reference in New Issue
Block a user