hotfix - assign interface to ip while updating server #15

Merged
Solvik merged 1 commit from hotfix into master 2019-08-05 17:46:37 +02:00

View file

@ -154,8 +154,8 @@ class Network():
status=1,
)
else:
if netbox_ip.device != device:
netbox_ip.device = device
if netbox_ip.interface != interface:
netbox_ip.interface = interface
netbox_ip.save()
if nic_update:
interface.save()