mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -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
|
When an IPAddress is deleted, trigger save() on any Devices/VirtualMachines for which it
|
||||||
was a OOB IP.
|
was a OOB IP.
|
||||||
"""
|
"""
|
||||||
field_name = f'oob_ip{instance.family}'
|
field_name = f'oob_ip'
|
||||||
device = Device.objects.filter(**{field_name: instance}).first()
|
device = Device.objects.filter(**{field_name: instance}).first()
|
||||||
if device:
|
if device:
|
||||||
device.save()
|
device.save()
|
||||||
|
Loading…
Reference in New Issue
Block a user