From b60860e0f5315a033d97b6163a5cd2d0058b92e3 Mon Sep 17 00:00:00 2001 From: Solvik Blum Date: Wed, 7 Aug 2019 15:36:47 +0200 Subject: [PATCH] fix bug while testing server creation --- 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 6bdfd71..636fdde 100644 --- a/netbox_agent/server.py +++ b/netbox_agent/server.py @@ -182,7 +182,7 @@ class ServerBase(): else: server = nb.dcim.devices.get(serial=self.get_service_tag()) if not server: - self._netbox_create_server() + self._netbox_create_server(datacenter) self.network.create_netbox_network_cards() logging.debug('Server created!')