Browse Source

Remove extraxted Record.ignored, extract excluded and included

Make the Record.octodns bits more consistent
pull/67/head
Ross McFarland 8 years ago
parent
commit
182c953875
No known key found for this signature in database GPG Key ID: 61C10C4FC8FE4A89
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      octodns/record.py

+ 8
- 3
octodns/record.py View File

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


Loading…
Cancel
Save