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

Implement YamlProvider.supports that always says yes

This commit is contained in:
Ross McFarland
2022-08-27 15:40:02 -07:00
parent 72244ba161
commit 557b80f784
2 changed files with 22 additions and 0 deletions

View File

@@ -167,6 +167,14 @@ class YamlProvider(BaseProvider):
del args['log']
return self.__class__(**args)
def supports(self, record):
# We're overriding this as a performance tweak, namely to avoid calling
# the implementation of the SUPPORTS property to create a set from a
# dict_keys every single time something checked whether we support a
# record, the answer is always yes so that's overkill and we can just
# return True here and be done with it
return True
@property
def SUPPORTS_ROOT_NS(self):
return self.supports_root_ns