|
|
@ -263,12 +263,12 @@ const buildQueryAnvilDetail = ({ |
|
|
|
anvilUUID, |
|
|
|
anvilUUID, |
|
|
|
anvilName, |
|
|
|
anvilName, |
|
|
|
anvilDescription, |
|
|
|
anvilDescription, |
|
|
|
anvilTotalCPUCores: parseInt(anvilTotalCPUCores), |
|
|
|
anvilTotalCPUCores: Number(anvilTotalCPUCores), |
|
|
|
anvilTotalMemory: String(anvilTotalMemory), |
|
|
|
anvilTotalMemory: String(anvilTotalMemory), |
|
|
|
anvilTotalAllocatedCPUCores: parseInt( |
|
|
|
anvilTotalAllocatedCPUCores: Number( |
|
|
|
anvilTotalAllocatedCPUCores, |
|
|
|
anvilTotalAllocatedCPUCores, |
|
|
|
), |
|
|
|
), |
|
|
|
anvilTotalAvailableCPUCores: parseInt( |
|
|
|
anvilTotalAvailableCPUCores: Number( |
|
|
|
anvilTotalAvailableCPUCores, |
|
|
|
anvilTotalAvailableCPUCores, |
|
|
|
), |
|
|
|
), |
|
|
|
} as AnvilDetailForProvisionServer; |
|
|
|
} as AnvilDetailForProvisionServer; |
|
|
@ -280,7 +280,7 @@ const buildQueryAnvilDetail = ({ |
|
|
|
hosts[hostUUID] = { |
|
|
|
hosts[hostUUID] = { |
|
|
|
hostUUID, |
|
|
|
hostUUID, |
|
|
|
hostName, |
|
|
|
hostName, |
|
|
|
hostCPUCores: parseInt(hostCPUCores), |
|
|
|
hostCPUCores: Number(hostCPUCores), |
|
|
|
hostMemory: String(hostMemory), |
|
|
|
hostMemory: String(hostMemory), |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
@ -297,7 +297,7 @@ const buildQueryAnvilDetail = ({ |
|
|
|
servers[serverUUID] = { |
|
|
|
servers[serverUUID] = { |
|
|
|
serverUUID, |
|
|
|
serverUUID, |
|
|
|
serverName, |
|
|
|
serverName, |
|
|
|
serverCPUCores: parseInt(serverCPUCores), |
|
|
|
serverCPUCores: Number(serverCPUCores), |
|
|
|
serverMemory, |
|
|
|
serverMemory, |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|