|
|
@ -111,12 +111,12 @@ class Zone(object): |
|
|
if record.ignored: |
|
|
if record.ignored: |
|
|
continue |
|
|
continue |
|
|
elif len(record.included) > 0 and \ |
|
|
elif len(record.included) > 0 and \ |
|
|
target.__class__.__name__ not in record.included: |
|
|
|
|
|
|
|
|
target.id not in record.included: |
|
|
self.log.debug('changes: skipping record=%s %s - %s not' |
|
|
self.log.debug('changes: skipping record=%s %s - %s not' |
|
|
' included ', record.fqdn, record._type, |
|
|
' included ', record.fqdn, record._type, |
|
|
target.id) |
|
|
target.id) |
|
|
continue |
|
|
continue |
|
|
elif target.__class__.__name__ in record.excluded: |
|
|
|
|
|
|
|
|
elif target.id in record.excluded: |
|
|
self.log.debug('changes: skipping record=%s %s - %s ' |
|
|
self.log.debug('changes: skipping record=%s %s - %s ' |
|
|
'excluded ', record.fqdn, record._type, |
|
|
'excluded ', record.fqdn, record._type, |
|
|
target.id) |
|
|
target.id) |
|
|
@ -126,12 +126,12 @@ class Zone(object): |
|
|
if desired_record.ignored: |
|
|
if desired_record.ignored: |
|
|
continue |
|
|
continue |
|
|
elif len(record.included) > 0 and \ |
|
|
elif len(record.included) > 0 and \ |
|
|
target.__class__.__name__ not in record.included: |
|
|
|
|
|
|
|
|
target.id not in record.included: |
|
|
self.log.debug('changes: skipping record=%s %s - %s' |
|
|
self.log.debug('changes: skipping record=%s %s - %s' |
|
|
'not included ', record.fqdn, record._type, |
|
|
'not included ', record.fqdn, record._type, |
|
|
target.id) |
|
|
target.id) |
|
|
continue |
|
|
continue |
|
|
elif target.__class__.__name__ in record.excluded: |
|
|
|
|
|
|
|
|
elif target.id in record.excluded: |
|
|
continue |
|
|
continue |
|
|
except KeyError: |
|
|
except KeyError: |
|
|
if not target.supports(record): |
|
|
if not target.supports(record): |
|
|
@ -161,12 +161,12 @@ class Zone(object): |
|
|
if record.ignored: |
|
|
if record.ignored: |
|
|
continue |
|
|
continue |
|
|
elif len(record.included) > 0 and \ |
|
|
elif len(record.included) > 0 and \ |
|
|
target.__class__.__name__ not in record.included: |
|
|
|
|
|
|
|
|
target.id not in record.included: |
|
|
self.log.debug('changes: skipping record=%s %s - %s not' |
|
|
self.log.debug('changes: skipping record=%s %s - %s not' |
|
|
' included ', record.fqdn, record._type, |
|
|
' included ', record.fqdn, record._type, |
|
|
target.id) |
|
|
target.id) |
|
|
continue |
|
|
continue |
|
|
elif target.__class__.__name__ in record.excluded: |
|
|
|
|
|
|
|
|
elif target.id in record.excluded: |
|
|
self.log.debug('changes: skipping record=%s %s - %s ' |
|
|
self.log.debug('changes: skipping record=%s %s - %s ' |
|
|
'excluded ', record.fqdn, record._type, |
|
|
'excluded ', record.fqdn, record._type, |
|
|
target.id) |
|
|
target.id) |
|
|
|