Merge pull request #158 from Solvik/157

fix agent crash on server creation if not blade
This commit is contained in:
Solvik 2020-08-05 15:16:45 +02:00 committed by GitHub
commit feab0f1a58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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