fix rack association

This commit is contained in:
Solvik Blum 2019-09-11 17:28:42 +02:00
parent 458d1f83c2
commit c6577a0341
No known key found for this signature in database
GPG key ID: CC12B3DC262B6C47

View file

@ -68,7 +68,7 @@ class ServerBase():
def get_netbox_rack(self): def get_netbox_rack(self):
rack = nb.dcim.racks.get( rack = nb.dcim.racks.get(
name=self.get_rack(), name=self.get_rack(),
datacenter=self.get_netbox_datacenter(), site_id=self.get_netbox_datacenter().id,
) )
return rack return rack