fix rack association (#79)

This commit is contained in:
Solvik 2019-09-11 17:35:27 +02:00 committed by GitHub
parent 458d1f83c2
commit 9f7f29c190
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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