Skip to content

Commit

Permalink
Merge pull request #370 from peteeckel/fix/soa-serial-auto-enable-check
Browse files Browse the repository at this point in the history
Check against decrease by soa_serial_auto only if it gets enabled
  • Loading branch information
peteeckel authored Aug 26, 2024
2 parents ee15728 + 4fbb657 commit c0079e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox_dns/models/zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ def clean(self, *args, **kwargs):
old_zone = Zone.objects.get(pk=self.pk)
if not self.soa_serial_auto:
self.check_soa_serial_increment(old_zone.soa_serial, self.soa_serial)
else:
elif not old_zone.soa_serial_auto:
try:
self.check_soa_serial_increment(
old_zone.soa_serial, self.get_auto_serial()
Expand Down

0 comments on commit c0079e7

Please sign in to comment.