lint
This commit is contained in:
parent
86f661a8af
commit
477db836f4
|
@ -43,7 +43,8 @@ def get_region_from_dns(dns):
|
||||||
# XXX.REGION.elb.amazonaws.com
|
# XXX.REGION.elb.amazonaws.com
|
||||||
if dns.endswith(".elb.amazonaws.com"):
|
if dns.endswith(".elb.amazonaws.com"):
|
||||||
return dns.split(".")[-4]
|
return dns.split(".")[-4]
|
||||||
else: # NLBs have a different pattern on the dns XXXX.elb.REGION.amazonaws.com
|
else:
|
||||||
|
# NLBs have a different pattern on the dns XXXX.elb.REGION.amazonaws.com
|
||||||
return dns.split(".")[-3]
|
return dns.split(".")[-3]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue