1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

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

This commit is contained in:
Ross McFarland
2022-02-16 15:37:16 -08:00
parent 02296652ca
commit 1b543c675f

View File

@@ -94,7 +94,8 @@ class BaseProvider(BaseSource):
record = record.copy()
record.values = [record.value]
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
msg = \
f'root NS record not supported for {record.fqdn}'