xen: Drop JSON for supported_instances
The virt drivers pass the value for supported_instances to the resource tracker as a JSON encoded string. This gets decoded as soon as it is copied to the compute node object. The JSON is not used anymore since compute node object was added so we will remove the encoding for all virt drivers. This patch removes that unnecessary encoding from the xen driver. blueprint mitaka-objects Change-Id: I0fd4e6de1f08190f8f9b500336f18030423678a1
This commit is contained in:
parent
227d3ece6c
commit
a88f073e6c
|
@ -459,8 +459,7 @@ class XenAPIDriver(driver.ComputeDriver):
|
|||
'hypervisor_hostname': host_stats['host_hostname'],
|
||||
'cpu_info': jsonutils.dumps(host_stats['cpu_model']),
|
||||
'disk_available_least': total_disk_gb - allocated_disk_gb,
|
||||
'supported_instances': jsonutils.dumps(
|
||||
host_stats['supported_instances']),
|
||||
'supported_instances': host_stats['supported_instances'],
|
||||
'pci_passthrough_devices': jsonutils.dumps(
|
||||
host_stats['pci_passthrough_devices']),
|
||||
'numa_topology': None}
|
||||
|
|
Loading…
Reference in New Issue