Browse Source

Only throw RootNsChange UnsafePlan on existing zones

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

+ 3
- 3
octodns/provider/plan.py View File

@ -99,9 +99,9 @@ class Plan(object):
# If we have any changes of the root NS record for the zone it's a huge
# deal and force should always be required for extra care
if [True for c in self.changes
if c.record and c.record._type == 'NS' and
c.record.name == '']:
if self.exists and [True for c in self.changes
if c.record and c.record._type == 'NS' and
c.record.name == '']:
raise RootNsChange()
def __repr__(self):


Loading…
Cancel
Save