Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuRA committed Nov 27, 2024
1 parent a944fe9 commit 81feb6c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

> Users must be able to say: “Nice enhancement, I'm eager to test it”
- [REST/VM] When creating a VM, the template's VIFs are created. It is also possible to create more VIFs or delete/update template's VIFs (PR [#8137](https://github.com/vatesfr/xen-orchestra/pull/8137))

### Bug fixes

> Users must be able to say: “I had this issue, happy to know it's fixed”
Expand All @@ -31,4 +33,6 @@
<!--packages-start-->

- xo-server minor

<!--packages-end-->
9 changes: 0 additions & 9 deletions packages/xo-server/src/api/vm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -340,15 +340,6 @@ create.params = {
},
device: { type: 'string', optional: true },
remove: { type: 'boolean', optional: true },

// device: {
// optional: true,
// type: 'string',
// },
// remove: {
// optional: true,
// type: 'boolean',
// },
},
},
},
Expand Down
5 changes: 2 additions & 3 deletions packages/xo-web/src/xo-app/new-vm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,9 @@ export default class NewVm extends BaseComponent {
const resourceSet = this._getResourceSet()
const { template } = this.props

// In case the user remove some VIFs created by the template
// In case user deletes some VIF created by the template
// We need to mark them with `remove:true`
// so that xo-server correctly remove it
// so that xo-server deletes them properly
if (_VIFs.length < templateVifs.length) {
const _vifByDevice = keyBy(_VIFs, 'device')
templateVifs.forEach(templateVif => {
Expand All @@ -497,7 +497,6 @@ export default class NewVm extends BaseComponent {
})
}

// return
// Either use `memory` OR `memory*` params
let { memory, memoryStaticMax, memoryDynamicMin, memoryDynamicMax } = state
if ((memoryStaticMax != null || memoryDynamicMin != null) && memoryDynamicMax == null) {
Expand Down

0 comments on commit 81feb6c

Please sign in to comment.