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:
committed by
Pierre Donias
parent
2a59feddb6
commit
11616ee03b
@@ -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”
|
||||
|
||||
@@ -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' &&
|
||||
|
||||
Reference in New Issue
Block a user