Run black to fix linting
This commit is contained in:
parent
9169b87748
commit
528cf0e21d
3 changed files with 63 additions and 21 deletions
|
|
@ -2537,8 +2537,11 @@ class VPC(TaggedEC2Resource):
|
|||
# Doesn't check any route tables, maybe something for in the future?
|
||||
# See https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html#classiclink-limitations
|
||||
network_address = ipaddress.ip_network(self.cidr_block).network_address
|
||||
if network_address not in ipaddress.ip_network("10.0.0.0/8") or network_address in ipaddress.ip_network(
|
||||
"10.0.0.0/16") or network_address in ipaddress.ip_network("10.1.0.0/16"):
|
||||
if (
|
||||
network_address not in ipaddress.ip_network("10.0.0.0/8")
|
||||
or network_address in ipaddress.ip_network("10.0.0.0/16")
|
||||
or network_address in ipaddress.ip_network("10.1.0.0/16")
|
||||
):
|
||||
self.classic_link_enabled = "true"
|
||||
|
||||
return self.classic_link_enabled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue