fix agent crash on server creation if not blade

This commit is contained in:
Solvik Blum 2020-07-29 00:45:24 +02:00
parent a59690469b
commit f8c0732c2b

View file

@ -283,7 +283,7 @@ class ServerBase():
else:
server = nb.dcim.devices.get(serial=self.get_service_tag())
if not server:
self._netbox_create_server(datacenter, tenant, rack)
server = self._netbox_create_server(datacenter, tenant, rack)
logging.debug('Updating Server...')
# check network cards