fix(VM): cpuCap & cpuWeight are integers

This commit is contained in:
Julien Fontanet 2016-07-19 16:53:27 +02:00
parent 728c5aa86e
commit c97bd78cd0

View File

@ -337,8 +337,8 @@ const TRANSFORMS = {
let tmp let tmp
if ((tmp = obj.VCPUs_params)) { if ((tmp = obj.VCPUs_params)) {
tmp.cap && (vm.cpuCap = tmp.cap) tmp.cap && (vm.cpuCap = +tmp.cap)
tmp.weight && (vm.cpuWeight = tmp.weight) tmp.weight && (vm.cpuWeight = +tmp.weight)
} }
if (!isHvm) { if (!isHvm) {