Merge pull request #15 from Solvik/hotfix

hotfix - assign interface to ip while updating server
This commit is contained in:
Solvik 2019-08-05 17:46:36 +02:00 committed by GitHub
commit ebeca4493e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()