Add vbd.setBootable api call. (fix vatesfr/xo-web/#583)

This commit is contained in:
wescoeur 2015-12-17 17:04:39 +01:00
parent eb0c963332
commit 4a0c58c50a

View File

@ -88,6 +88,26 @@ set.resolve = {
exports.set = set
#---------------------------------------------------------------------
setBootable = $coroutine ({vbd, bootable}) ->
xapi = @getXAPI vbd
{ _xapiRef: ref } = vbd
yield xapi.call 'VBD.set_bootable', ref, bootable
return
setBootable.params = {
vbd: { type: 'string' }
bootable: { type: 'boolean' }
}
setBootable.resolve = {
vbd: ['vbd', 'VBD', 'administrate'],
}
exports.setBootable = setBootable
#=====================================================================
Object.defineProperty(exports, '__esModule', {