From 182c9538751e0595cdd48ff32f6c22184497f7b2 Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Sat, 31 Mar 2018 12:21:25 -0700 Subject: [PATCH] Remove extraxted Record.ignored, extract excluded and included Make the Record.octodns bits more consistent --- octodns/record.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/octodns/record.py b/octodns/record.py index e904c89..c60ecd6 100644 --- a/octodns/record.py +++ b/octodns/record.py @@ -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: