Use platform id instead of record (#231)

This commit is contained in:
DeathRabbit679 2022-07-18 15:08:03 -05:00 committed by GitHub
parent 0cff7d3477
commit ea66becd3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -274,7 +274,7 @@ class ServerBase():
serial=serial,
device_role=device_role.id,
device_type=device_type.id,
platform=self.device_platform,
platform=self.device_platform.id,
site=datacenter.id if datacenter else None,
tenant=tenant.id if tenant else None,
rack=rack.id if rack else None,