mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 00:36:11 -06:00
fix oob ip signal
This commit is contained in:
parent
d267e42674
commit
bdd7afb875
@ -70,7 +70,7 @@ def clear_oob_ip(instance, **kwargs):
|
||||
When an IPAddress is deleted, trigger save() on any Devices/VirtualMachines for which it
|
||||
was a OOB IP.
|
||||
"""
|
||||
field_name = f'oob_ip{instance.family}'
|
||||
field_name = f'oob_ip'
|
||||
device = Device.objects.filter(**{field_name: instance}).first()
|
||||
if device:
|
||||
device.save()
|
||||
|
Loading…
Reference in New Issue
Block a user