Created VBDs should be unpluggable.

This commit is contained in:
Julien Fontanet 2015-06-30 16:23:51 +02:00
parent 18473e6819
commit daa26b2e1e

View File

@ -694,6 +694,7 @@ export default class Xapi extends XapiBase {
} }
} }
// By default a VBD is unpluggable.
const vbdRef = await this.call('VBD.create', { const vbdRef = await this.call('VBD.create', {
bootable, bootable,
empty: false, empty: false,
@ -702,7 +703,6 @@ export default class Xapi extends XapiBase {
qos_algorithm_params: {}, qos_algorithm_params: {},
qos_algorithm_type: '', qos_algorithm_type: '',
type, type,
unpluggable: (type !== 'Disk'),
userdevice: String(position), userdevice: String(position),
VDI: vdi.$ref, VDI: vdi.$ref,
VM: vm.$ref VM: vm.$ref