1
0
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:
Viranch Mehta
2021-06-29 15:36:48 -07:00
parent 1d55124a5c
commit 0f0d0d12e2

View File

@@ -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--'