Merge pull request #276 from vatesfr/fix-auto-poweron
Fix auto poweron (fix vatesfr/xo-web#879).
This commit is contained in:
commit
5f50f1928d
@ -480,7 +480,7 @@ set = $coroutine (params) ->
|
|||||||
|
|
||||||
if auto_poweron
|
if auto_poweron
|
||||||
yield xapi.call 'VM.add_to_other_config', ref, 'auto_poweron', 'true'
|
yield xapi.call 'VM.add_to_other_config', ref, 'auto_poweron', 'true'
|
||||||
yield xapi.setPoolProperties({autoPowerOn: true})
|
yield xapi.setPoolProperties({autoPoweron: true})
|
||||||
else
|
else
|
||||||
yield xapi.call 'VM.remove_from_other_config', ref, 'auto_poweron'
|
yield xapi.call 'VM.remove_from_other_config', ref, 'auto_poweron'
|
||||||
|
|
||||||
|
@ -408,8 +408,8 @@ export default class Xapi extends XapiBase {
|
|||||||
nameLabel,
|
nameLabel,
|
||||||
nameDescription
|
nameDescription
|
||||||
}),
|
}),
|
||||||
this._updateObjectMapProperty(pool, 'other_config', {
|
autoPoweron != null && this._updateObjectMapProperty(pool, 'other_config', {
|
||||||
autoPoweron
|
autoPoweron: autoPoweron ? 'on' : null
|
||||||
})
|
})
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user