fix(xo-server/vm.create): dont extract cpus & memoryMax from params (#3646)
Fixes #3644
This commit is contained in:
committed by
Julien Fontanet
parent
73de421d47
commit
289ed89a78
@@ -18,6 +18,7 @@
|
||||
- [Backup NG] Increase timeout in stale remotes detection to limit false positives (PR [#3632](https://github.com/vatesfr/xen-orchestra/pull/3632))
|
||||
- Fix re-registration issue ([4e35b19ac](https://github.com/vatesfr/xen-orchestra/commit/4e35b19ac56c60f61c0e771cde70a50402797b8a))
|
||||
- [Backup NG logs] Fix started jobs filter [#3636](https://github.com/vatesfr/xen-orchestra/issues/3636) (PR [#3641](https://github.com/vatesfr/xen-orchestra/pull/3641))
|
||||
- [New VM] CPU and memory user inputs were ignored since previous release [#3644](https://github.com/vatesfr/xen-orchestra/issues/3644) (PR [#3646](https://github.com/vatesfr/xen-orchestra/pull/3646))
|
||||
|
||||
### Released packages
|
||||
|
||||
|
||||
@@ -68,10 +68,9 @@ export async function create (params) {
|
||||
const xapi = this.getXapi(template)
|
||||
|
||||
const objectIds = [template.id]
|
||||
const cpus = extract(params, 'CPUs')
|
||||
const memoryMax = extract(params, 'memoryMax')
|
||||
const { CPUs, memoryMax } = params
|
||||
const limits = {
|
||||
cpus: cpus !== undefined ? cpus : template.CPUs.number,
|
||||
cpus: CPUs !== undefined ? CPUs : template.CPUs.number,
|
||||
disk: 0,
|
||||
memory: memoryMax !== undefined ? memoryMax : template.memory.dynamic[1],
|
||||
vms: 1,
|
||||
|
||||
Reference in New Issue
Block a user