fix(vm.set): cpusMax (shame)

This commit is contained in:
Julien Fontanet 2016-05-24 15:13:53 +02:00
parent b2611728a1
commit 746c5f4a79

View File

@ -471,7 +471,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, "#{cpusMax}"
yield xapi.call 'VM.set_VCPUs_max', ref, "#{params.cpusMax}"
# HA policy
# TODO: also handle "best-effort" case