feat(xo-server/snapshotVm): handle removed method (#4736)

Fixes #4735

This is necessary because CH 8.1 removed this method.
This commit is contained in:
Julien Fontanet
2020-01-14 10:09:01 +01:00
committed by Pierre Donias
parent 2a59feddb6
commit 11616ee03b
2 changed files with 5 additions and 0 deletions

View File

@@ -7,6 +7,9 @@
> Users must be able to say: “Nice enhancement, I'm eager to test it”
- [Snapshot] Fallback to normal snapshot if quiesce is not available [#4735](https://github.com/vatesfr/xen-orchestra/issues/4735) (PR [#4736](https://github.com/vatesfr/xen-orchestra/pull/4736)) \
Fixes compatibility with **Citrix Hypervisor 8.1**.
### Bug fixes
> Users must be able to say: “I had this issue, happy to know it's fixed”

View File

@@ -1502,6 +1502,8 @@ export default class Xapi extends XapiBase {
} catch (error) {
const { code } = error
if (
// removed in CH 8.1
code !== 'MESSAGE_REMOVED' &&
code !== 'VM_SNAPSHOT_WITH_QUIESCE_NOT_SUPPORTED' &&
// quiesce only work on a running VM
code !== 'VM_BAD_POWER_STATE' &&