fix(xo-server): fix Xapi#snapshotVm

It was broken by #2701.
This commit is contained in:
Julien Fontanet 2018-03-02 10:53:49 +01:00
parent 8ad02d2d51
commit 28d1539ea6

View File

@ -1434,7 +1434,7 @@ export default class Xapi extends XapiBase {
'VM.snapshot_with_quiesce',
vm.$ref,
nameLabel
)
).then(extractOpaqueRef)
this.addTag(ref, 'quiesce')::ignoreErrors()
await this._waitObjectState(ref, vm => includes(vm.tags, 'quiesce'))
@ -1455,7 +1455,7 @@ export default class Xapi extends XapiBase {
'VM.snapshot',
vm.$ref,
nameLabel
)
).then(extractOpaqueRef)
}
// Convert the template to a VM and wait to have receive the up-
// to-date object.