diff --git a/src/xapi-object-to-xo.js b/src/xapi-object-to-xo.js index dff6ec641..88c9e417f 100644 --- a/src/xapi-object-to-xo.js +++ b/src/xapi-object-to-xo.js @@ -337,8 +337,8 @@ const TRANSFORMS = { let tmp if ((tmp = obj.VCPUs_params)) { - tmp.cap && (vm.cpuCap = tmp.cap) - tmp.weight && (vm.cpuWeight = tmp.weight) + tmp.cap && (vm.cpuCap = +tmp.cap) + tmp.weight && (vm.cpuWeight = +tmp.weight) } if (!isHvm) {