mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Fix handling of NULL SRV records in DigitalOcean provider
This commit is contained in:
@@ -186,10 +186,14 @@ class DigitalOceanProvider(BaseProvider):
|
||||
def _data_for_SRV(self, _type, records):
|
||||
values = []
|
||||
for record in records:
|
||||
target = (
|
||||
'{}.'.format(record['data'])
|
||||
if record['data'] != "." else "."
|
||||
)
|
||||
values.append({
|
||||
'port': record['port'],
|
||||
'priority': record['priority'],
|
||||
'target': '{}.'.format(record['data']),
|
||||
'target': target,
|
||||
'weight': record['weight']
|
||||
})
|
||||
return {
|
||||
|
Reference in New Issue
Block a user