mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Drop colons of IPv6 values from endpoint names
This commit is contained in:
@@ -1074,6 +1074,9 @@ class AzureProvider(BaseProvider):
|
||||
if typ == 'CNAME':
|
||||
target = target[:-1]
|
||||
ep_name = '{}--{}'.format(pool_name, target)
|
||||
# Endpoint names cannot have colons, drop them
|
||||
# from IPv6 addresses
|
||||
ep_name = ep_name.replace(':', '-')
|
||||
if target in defaults:
|
||||
# mark default
|
||||
ep_name += '--default--'
|
||||
|
||||
Reference in New Issue
Block a user