diff --git a/octodns/processor/filter.py b/octodns/processor/filter.py index e02bc84..4723073 100644 --- a/octodns/processor/filter.py +++ b/octodns/processor/filter.py @@ -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 diff --git a/tests/test_octodns_processor_filter.py b/tests/test_octodns_processor_filter.py index 0a1b6dd..9857926 100644 --- a/tests/test_octodns_processor_filter.py +++ b/tests/test_octodns_processor_filter.py @@ -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.', [])