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

Revert "Zone._remove_record shim removed in favor of long standing Zone.remove_record"

This reverts commit 9f22173d30.
This commit is contained in:
Ross McFarland
2022-11-17 07:23:07 -08:00
parent 9841781d08
commit 25615b3196
3 changed files with 4 additions and 3 deletions

View File

@@ -6,8 +6,6 @@
* Provider, Source, and Processor shims removed, they've been warnings for >
1yr. Everything should be using and referring to provider-specific
modules now.
* Zone._remove_record shim removed in favor of long standing
Zone.remove_record
#### Stuff

View File

@@ -132,6 +132,9 @@ class Zone(object):
self._records[record.name].discard(record)
# TODO: delete this
_remove_record = remove_record
def changes(self, desired, target):
self.log.debug('changes: zone=%s, target=%s', self, target)

View File

@@ -125,7 +125,7 @@ class TestZone(TestCase):
# add a record, delete a record -> [Delete, Create]
c = ARecord(before, 'c', {'ttl': 42, 'value': '1.1.1.1'})
after.add_record(c)
after.remove_record(b)
after._remove_record(b)
self.assertEqual(after.records, set([a, c]))
changes = before.changes(after, target)
self.assertEqual(2, len(changes))