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

fix issue in OwnershipProcessor when last change is removed

This commit is contained in:
Ross McFarland
2023-04-17 10:39:07 -07:00
parent 518aaf8412
commit 8ec75dc194
3 changed files with 25 additions and 1 deletions

View File

@@ -90,7 +90,9 @@ class OwnershipProcessor(BaseProcessor):
# change is we should do
filtered_changes.append(change)
if plan.changes != filtered_changes:
if not filtered_changes:
return None
elif plan.changes != filtered_changes:
return Plan(
plan.existing,
plan.desired,