removed depricated account id (#4156)
This commit is contained in:
parent
6db042dc72
commit
5e6b7ee529
@ -3490,7 +3490,6 @@ class Subnet(TaggedEC2Resource, CloudFormationModel):
|
||||
availability_zone,
|
||||
default_for_az,
|
||||
map_public_ip_on_launch,
|
||||
owner_id=OWNER_ID,
|
||||
assign_ipv6_address_on_creation=False,
|
||||
):
|
||||
self.ec2_backend = ec2_backend
|
||||
@ -3504,7 +3503,6 @@ class Subnet(TaggedEC2Resource, CloudFormationModel):
|
||||
self._availability_zone = availability_zone
|
||||
self.default_for_az = default_for_az
|
||||
self.map_public_ip_on_launch = map_public_ip_on_launch
|
||||
self.owner_id = owner_id
|
||||
self.assign_ipv6_address_on_creation = assign_ipv6_address_on_creation
|
||||
self.ipv6_cidr_block_associations = []
|
||||
|
||||
@ -3517,6 +3515,10 @@ class Subnet(TaggedEC2Resource, CloudFormationModel):
|
||||
self._subnet_ips = {} # has IP: instance
|
||||
self.state = "available"
|
||||
|
||||
@property
|
||||
def owner_id(self):
|
||||
return ACCOUNT_ID
|
||||
|
||||
@staticmethod
|
||||
def cloudformation_name_type():
|
||||
return None
|
||||
@ -3750,7 +3752,6 @@ class SubnetBackend(object):
|
||||
availability_zone_data,
|
||||
default_for_az,
|
||||
map_public_ip_on_launch,
|
||||
owner_id=context.get_current_user() if context else OWNER_ID,
|
||||
assign_ipv6_address_on_creation=False,
|
||||
)
|
||||
|
||||
@ -4133,6 +4134,10 @@ class RouteTable(TaggedEC2Resource, CloudFormationModel):
|
||||
self.associations = {}
|
||||
self.routes = {}
|
||||
|
||||
@property
|
||||
def owner_id(self):
|
||||
return ACCOUNT_ID
|
||||
|
||||
@staticmethod
|
||||
def cloudformation_name_type():
|
||||
return None
|
||||
|
@ -123,6 +123,7 @@ CREATE_ROUTE_TABLE_RESPONSE = """
|
||||
<routeTable>
|
||||
<routeTableId>{{ route_table.id }}</routeTableId>
|
||||
<vpcId>{{ route_table.vpc_id }}</vpcId>
|
||||
<ownerId>{{ route_table.owner_id }}</ownerId>
|
||||
<routeSet>
|
||||
{% for route in route_table.routes.values() %}
|
||||
{% if route.local %}
|
||||
@ -157,7 +158,7 @@ DESCRIBE_ROUTE_TABLES_RESPONSE = """
|
||||
<item>
|
||||
<routeTableId>{{ route_table.id }}</routeTableId>
|
||||
<vpcId>{{ route_table.vpc_id }}</vpcId>
|
||||
<routeSet>
|
||||
<routeSet>
|
||||
{% for route in route_table.routes.values() %}
|
||||
<item>
|
||||
<destinationCidrBlock>{{ route.destination_cidr_block }}</destinationCidrBlock>
|
||||
|
@ -71,3 +71,4 @@ TestAccAWSUserGroupMembership
|
||||
TestAccAWSUserPolicyAttachment
|
||||
TestAccAWSUserSSHKey
|
||||
TestAccAWSVpc_
|
||||
TestAccAWSRouteTable_disappears
|
||||
|
Loading…
Reference in New Issue
Block a user