Deprecate host#CPUs and introduce host#cpus.
This commit is contained in:
parent
5f50f1928d
commit
635c76db93
@ -85,11 +85,17 @@ const TRANSFORMS = {
|
|||||||
const isRunning = isHostRunning(obj)
|
const isRunning = isHostRunning(obj)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
// Deprecated
|
||||||
|
CPUs: obj.cpu_info,
|
||||||
|
|
||||||
address: obj.address,
|
address: obj.address,
|
||||||
bios_strings: obj.bios_strings,
|
bios_strings: obj.bios_strings,
|
||||||
build: obj.software_version.build_number,
|
build: obj.software_version.build_number,
|
||||||
CPUs: obj.cpu_info,
|
|
||||||
enabled: Boolean(obj.enabled),
|
enabled: Boolean(obj.enabled),
|
||||||
|
cpus: {
|
||||||
|
cores: +obj.cpu_info.cpu_count,
|
||||||
|
sockets: +obj.cpu_info.socket_count
|
||||||
|
},
|
||||||
current_operations: obj.current_operations,
|
current_operations: obj.current_operations,
|
||||||
hostname: obj.hostname,
|
hostname: obj.hostname,
|
||||||
iSCSI_name: otherConfig.iscsi_iqn || null,
|
iSCSI_name: otherConfig.iscsi_iqn || null,
|
||||||
|
Loading…
Reference in New Issue
Block a user