fix(VM): cpuCap & cpuWeight are integers
This commit is contained in:
parent
728c5aa86e
commit
c97bd78cd0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user