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

Remove extraxted Record.ignored, extract excluded and included

Make the Record.octodns bits more consistent
This commit is contained in:
Ross McFarland
2018-03-31 12:21:25 -07:00
parent afd592f5a3
commit 182c953875

View File

@@ -127,9 +127,6 @@ class Record(object):
self.ttl = int(data['ttl'])
self._octodns = data.get('octodns', {})
self.ignored = self._octodns.get('ignored', False)
self.excluded = self._octodns.get('excluded', [])
self.included = self._octodns.get('included', [])
def _data(self):
return {'ttl': self.ttl}
@@ -148,6 +145,14 @@ class Record(object):
def ignored(self):
return self._octodns.get('ignored', False)
@property
def excluded(self):
return self._octodns.get('excluded', [])
@property
def included(self):
return self._octodns.get('included', [])
@property
def healthcheck_path(self):
try: