fix: TypeError: Object of type Record is not JSON serializable

This commit is contained in:
Robin Schneider 2022-11-03 14:56:38 +01:00
parent 042a6fcf35
commit dfe937d54e
No known key found for this signature in database
GPG key ID: A81E8006DC95EFE6

View file

@ -96,8 +96,8 @@ class VirtualMachine(object):
vm = nb.virtualization.virtual_machines.create(
name=hostname,
cluster=cluster.id,
platform=self.device_platform,
device_platform=self.device_platform,
platform=self.device_platform.id,
device_platform=self.device_platform.id,
vcpus=vcpus,
memory=memory,
tenant=tenant.id if tenant else None,