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!')