fix(xo-server/backupNg.importVmBackup): add missing version for delta

This commit is contained in:
Julien Fontanet 2018-03-16 17:14:38 +01:00
parent 80187e2789
commit ad0d4156fb
2 changed files with 24 additions and 20 deletions

View File

@ -12,10 +12,13 @@ type MaybeArray<T> = Array<T> | T
export type DeltaVmExport = {|
streams: $Dict < () => Promise < AugmentedReadable >>,
vbds: { [ref: string]: Object },
vdis: { [ref: string]: {
vdis: {
[ref: string]: {
$SR$uuid: string,
snapshot_of: string,
} },
}
},
version: '1.0.0',
vifs: { [ref: string]: Object },
vm: Vm,
|}

View File

@ -202,6 +202,7 @@ const importers: $Dict<
streams,
vbds: metadata.vbds,
vdis,
version: '1.0.0',
vifs: metadata.vifs,
vm: {
...vm,