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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user