Browse Source

NS1 _apply_Update needs to gc monitors w/existing

pull/748/head
Ross McFarland 4 years ago
parent
commit
7f59c476e0
No known key found for this signature in database GPG Key ID: 943B179E15D3B22A
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      octodns/provider/ns1.py

+ 3
- 1
octodns/provider/ns1.py View File

@ -1358,7 +1358,9 @@ class Ns1Provider(BaseProvider):
params, active_monitor_ids = \
getattr(self, '_params_for_{}'.format(_type))(new)
self._client.records_update(zone, domain, _type, **params)
self._monitors_gc(new, active_monitor_ids)
# If we're cleaning up we need to send in the old record since it'd
# have anything that needs cleaning up
self._monitors_gc(change.existing, active_monitor_ids)
def _apply_Delete(self, ns1_zone, change):
existing = change.existing


Loading…
Cancel
Save