1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Implement & test Zone.copy (shallow) and utilize it in processors

This commit is contained in:
Ross McFarland
2021-08-21 10:11:23 -07:00
parent cf60476183
commit 8c04508a86
8 changed files with 126 additions and 25 deletions

View File

@@ -61,11 +61,11 @@ class TrickyProcessor(BaseProcessor):
self.existing = existing
self.target = target
new = self._clone_zone(existing)
new = existing.copy()
for record in existing.records:
new.add_record(record)
new.add_record(record, replace=True)
for record in self.add_during_process_target_zone:
new.add_record(record)
new.add_record(record, replace=True)
return new