Browse Source

Finish backing out test churn w/YamlProvider's optional SUPPORTS_ROOT_NS

pull/876/head
Ross McFarland 4 years ago
parent
commit
1b543c675f
No known key found for this signature in database GPG Key ID: 943B179E15D3B22A
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      octodns/provider/base.py

+ 2
- 1
octodns/provider/base.py View File

@ -94,7 +94,8 @@ class BaseProvider(BaseSource):
record = record.copy() record = record.copy()
record.values = [record.value] record.values = [record.value]
desired.add_record(record, replace=True) desired.add_record(record, replace=True)
elif record._type == 'NS' and record.name == '':
elif record._type == 'NS' and record.name == '' and \
not self.SUPPORTS_ROOT_NS:
# ignore, we can't manage root NS records # ignore, we can't manage root NS records
msg = \ msg = \
f'root NS record not supported for {record.fqdn}' f'root NS record not supported for {record.fqdn}'


Loading…
Cancel
Save