Add VPC state.
This commit is contained in:
parent
0fcb00dcf5
commit
68d2db55d4
@ -1280,6 +1280,7 @@ class VPC(TaggedEC2Resource):
|
||||
self.id = vpc_id
|
||||
self.cidr_block = cidr_block
|
||||
self.dhcp_options = None
|
||||
self.state = 'available'
|
||||
|
||||
@classmethod
|
||||
def create_from_cloudformation_json(cls, resource_name, cloudformation_json):
|
||||
|
@ -56,7 +56,7 @@ DESCRIBE_VPCS_RESPONSE = """
|
||||
{% for vpc in vpcs %}
|
||||
<item>
|
||||
<vpcId>{{ vpc.id }}</vpcId>
|
||||
<state>available</state>
|
||||
<state>{{ vpc.state }}</state>
|
||||
<cidrBlock>{{ vpc.cidr_block }}</cidrBlock>
|
||||
<dhcpOptionsId>dopt-7a8b9c2d</dhcpOptionsId>
|
||||
<instanceTenancy>default</instanceTenancy>
|
||||
|
@ -207,4 +207,4 @@ def test_vpc_get_by_tag_value_subset():
|
||||
vpcs.should.have.length_of(2)
|
||||
vpc_ids = tuple(map(lambda v: v.id, vpcs))
|
||||
vpc1.id.should.be.within(vpc_ids)
|
||||
vpc2.id.should.be.within(vpc_ids)
|
||||
vpc2.id.should.be.within(vpc_ids)
|
||||
|
Loading…
Reference in New Issue
Block a user