fix(Xapi#exportDeltaVm): make streams property non-enumerable
This commit is contained in:
parent
df60784b51
commit
3b13bcb098
@ -1373,10 +1373,7 @@ export default class Xapi extends XapiBase {
|
|||||||
vifs[vif.$ref] = vif
|
vifs[vif.$ref] = vif
|
||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return Object.defineProperty({
|
||||||
// TODO: make non-enumerable?
|
|
||||||
streams: await streams::pAll(),
|
|
||||||
|
|
||||||
version: '1.0.0',
|
version: '1.0.0',
|
||||||
vbds,
|
vbds,
|
||||||
vdis,
|
vdis,
|
||||||
@ -1390,7 +1387,9 @@ export default class Xapi extends XapiBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
: vm
|
: vm
|
||||||
}
|
}, 'streams', {
|
||||||
|
value: await streams::pAll()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@deferrable.onFailure
|
@deferrable.onFailure
|
||||||
|
@ -545,12 +545,8 @@ export default class {
|
|||||||
|
|
||||||
$onFailure(() => handler.unlink(infoPath)::pCatch(noop))
|
$onFailure(() => handler.unlink(infoPath)::pCatch(noop))
|
||||||
|
|
||||||
const {
|
|
||||||
...infos
|
|
||||||
} = delta
|
|
||||||
|
|
||||||
// Write Metadata.
|
// Write Metadata.
|
||||||
await handler.outputFile(infoPath, JSON.stringify(infos, null, 2), {flag: 'wx'})
|
await handler.outputFile(infoPath, JSON.stringify(delta, null, 2), {flag: 'wx'})
|
||||||
|
|
||||||
// Here we have a completed backup. We can merge old vdis.
|
// Here we have a completed backup. We can merge old vdis.
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
|
Loading…
Reference in New Issue
Block a user