fix(vm.set): cpusMax

This commit is contained in:
Julien Fontanet 2016-05-24 14:23:21 +02:00
parent 5472be8b72
commit 21c6f53ecc

View File

@ -466,7 +466,7 @@ set = $coroutine (params) ->
yield xapi.call 'VM.set_VCPUs_at_startup', ref, "#{CPUs}"
if 'cpusMax' of params
yield xapi.call 'VM.set_VCPUs_max', ref, "#{CPUs}"
yield xapi.call 'VM.set_VCPUs_max', ref, "#{cpusMax}"
# HA policy
# TODO: also handle "best-effort" case