chore(xapi/mixins/vm): simplify _editVm() specs
This commit is contained in:
parent
938e106252
commit
a797edfae9
@ -200,7 +200,6 @@ export default {
|
|||||||
//
|
//
|
||||||
// Params do not correspond directly to XAPI props.
|
// Params do not correspond directly to XAPI props.
|
||||||
_editVm: makeEditObject({
|
_editVm: makeEditObject({
|
||||||
auto_poweron: 'autoPoweron',
|
|
||||||
autoPoweron: {
|
autoPoweron: {
|
||||||
set (value, vm) {
|
set (value, vm) {
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
@ -287,20 +286,11 @@ export default {
|
|||||||
set: 'memory_static_max'
|
set: 'memory_static_max'
|
||||||
},
|
},
|
||||||
|
|
||||||
name_description: 'nameDescription',
|
nameDescription: true,
|
||||||
nameDescription: {
|
|
||||||
set: 'name_description'
|
|
||||||
},
|
|
||||||
|
|
||||||
name_label: 'nameLabel',
|
nameLabel: true,
|
||||||
nameLabel: {
|
|
||||||
set: 'name_label'
|
|
||||||
},
|
|
||||||
|
|
||||||
pvArgs: {
|
PV_args: true
|
||||||
get: 'PV_args',
|
|
||||||
set: 'PV_args'
|
|
||||||
}
|
|
||||||
}),
|
}),
|
||||||
|
|
||||||
async editVm (id, props) {
|
async editVm (id, props) {
|
||||||
|
Loading…
Reference in New Issue
Block a user