Xapi#importDeltaVm(): explicit error when base VDI is not found.

This commit is contained in:
Julien Fontanet
2016-01-16 21:50:36 +01:00
parent 3a593ee35a
commit d581f8a852

View File

@@ -1372,6 +1372,10 @@ export default class Xapi extends XapiBase {
baseVdis,
vdi => vdi.other_config[TAG_COPY_SRC] === remoteBaseVdiUuid
)
if (!baseVdi) {
throw new Error(`missing base VDI (copy of ${remoteBaseVdiUuid}`)
}
const newVdi = await this._getOrWaitObject(
await this._cloneVdi(baseVdi)
)