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:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user