From c6577a0341adf393565493e93c2fbe1fcc5041b3 Mon Sep 17 00:00:00 2001 From: Solvik Blum Date: Wed, 11 Sep 2019 17:28:42 +0200 Subject: [PATCH] fix rack association --- netbox_agent/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_agent/server.py b/netbox_agent/server.py index f47384a..3de977b 100644 --- a/netbox_agent/server.py +++ b/netbox_agent/server.py @@ -68,7 +68,7 @@ class ServerBase(): def get_netbox_rack(self): rack = nb.dcim.racks.get( name=self.get_rack(), - datacenter=self.get_netbox_datacenter(), + site_id=self.get_netbox_datacenter().id, ) return rack -- 2.47.0