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

Non-configured root NS when supported is always a warning

This commit is contained in:
Ross McFarland
2022-02-17 13:24:34 -08:00
parent 0544e9ed7d
commit e3edae8466
2 changed files with 36 additions and 16 deletions

View File

@@ -98,10 +98,8 @@ class BaseProvider(BaseSource):
record = desired.root_ns
if self.SUPPORTS_ROOT_NS:
if not record:
msg = 'root NS record supported, but no record is ' \
f'configured for {desired.name}'
fallback = 'ignoring it'
self.supports_warn_or_except(msg, fallback)
self.log.warning('root NS record supported, but no record '
'is configured for %s', desired.name)
else:
if record:
# we can't manage root NS records, get rid of it