From c5226b288d30f754f1f9b62c132d76a755ff7673 Mon Sep 17 00:00:00 2001 From: Solvik Blum Date: Mon, 5 Aug 2019 17:41:03 +0200 Subject: [PATCH] hotfix - assign interface to ip while updating server --- netbox_agent/network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox_agent/network.py b/netbox_agent/network.py index 44e6efc..a2ac399 100644 --- a/netbox_agent/network.py +++ b/netbox_agent/network.py @@ -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()