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

Add support for included and excluded records

`Included` and `Excluded` can be used to filter records for one or more specific provider(s). This can be extremely useful when certain record types are not supported by a provider and you want only that provider to receive an alternative record.

See also: https://github.com/github/octodns/issues/26
This commit is contained in:
Paul van Brouwershaven
2017-09-28 14:54:53 +02:00
parent 1659784438
commit 11f4359099
9 changed files with 107 additions and 18 deletions

View File

@@ -124,6 +124,8 @@ class Record(object):
octodns = data.get('octodns', {})
self.ignored = octodns.get('ignored', False)
self.excluded = octodns.get('excluded', [])
self.included = octodns.get('included', [])
def _data(self):
return {'ttl': self.ttl}