Skip to content

Commit

Permalink
Merge pull request #142 from peteeckel/fix/ipam-ipaddress-clean
Browse files Browse the repository at this point in the history
Fix post_clean signal handler for ipam.IPAddress
  • Loading branch information
peteeckel authored Jan 19, 2024
2 parents 44eaa9a + 586cd35 commit c53374f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions netbox_dns/signals/ipam_coupling.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@

@receiver(post_clean, sender=IPAddress)
def ip_address_check_permissions_save(instance, **kwargs):
if not instance.address:
return

if not get_plugin_config("netbox_dns", "feature_ipam_coupling"):
return

Expand Down

0 comments on commit c53374f

Please sign in to comment.