Fixes regarding #660.

This commit is contained in:
Julien Fontanet 2016-01-28 11:42:06 +01:00
parent e193b45562
commit e59ac6d947
2 changed files with 2 additions and 2 deletions

View File

@ -1347,7 +1347,7 @@ export default class Xapi extends XapiBase {
srId = this.pool.default_SR,
disableStartAfterImport = true
} = {}) {
const version = { delta }
const { version } = delta
if (!versionSatisfies(version, '^1')) {
throw new Error(`Unsupported delta backup version: ${version}`)

View File

@ -565,7 +565,7 @@ export default class {
const delta = JSON.parse(await handler.readFile(`${filePath}${DELTA_BACKUP_EXT}`))
let vm
const version = { delta }
const { version } = delta
if (!version) {
// Legacy import. (Version 0.0.0)