Browse Source

ZoneNameFilter error defaults to True

pull/1083/head
Ross McFarland 2 years ago
parent
commit
e6ad64f25f
No known key found for this signature in database GPG Key ID: 943B179E15D3B22A
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      octodns/processor/filter.py
  2. +1
    -1
      tests/test_octodns_processor_filter.py

+ 2
- 2
octodns/processor/filter.py View File

@ -228,7 +228,7 @@ class ZoneNameFilter(BaseProcessor):
class: octodns.processor.filter.ZoneNameFilter
# If true a ValidationError will be throw when such records are
# encouterd, if false the records will just be ignored/omitted.
# (default: false)
# (default: true)
zones:
exxampled.com.:
@ -240,7 +240,7 @@ class ZoneNameFilter(BaseProcessor):
- azure
'''
def __init__(self, name, error=False):
def __init__(self, name, error=True):
super().__init__(name)
self.error = error


+ 1
- 1
tests/test_octodns_processor_filter.py View File

@ -186,7 +186,7 @@ class TestIgnoreRootNsFilter(TestCase):
class TestZoneNameFilter(TestCase):
def test_ends_with_zone(self):
zone_name_filter = ZoneNameFilter('zone-name')
zone_name_filter = ZoneNameFilter('zone-name', error=False)
zone = Zone('unit.tests.', [])


Loading…
Cancel
Save