Check excluded in desired_record

This commit is contained in:
Paul van Brouwershaven
2017-10-30 18:33:51 +01:00
parent 4b41762642
commit 7352978880
+3 -3
View File
@@ -125,13 +125,13 @@ class Zone(object):
desired_record = desired_records[record]
if desired_record.ignored:
continue
elif len(record.included) > 0 and \
target.id not in record.included:
elif len(desired_record.included) > 0 and \
target.id not in desired_record.included:
self.log.debug('changes: skipping record=%s %s - %s'
'not included ', record.fqdn, record._type,
target.id)
continue
elif target.id in record.excluded:
elif target.id in desired_record.excluded:
continue
except KeyError:
if not target.supports(record):