fix(xapi/VM_create): ignore missing VM.set_bios_strings

Fixes xoa-support#3516
This commit is contained in:
Julien Fontanet 2021-03-19 14:51:51 +01:00
parent d98f851a2c
commit dcf0f5c5a3
2 changed files with 3 additions and 1 deletions

View File

@ -261,7 +261,8 @@ module.exports = class Vm {
bios_strings = cleanBiosStrings(bios_strings)
if (bios_strings !== undefined) {
await this.call('VM.set_bios_strings', ref, bios_strings)
// Only available on XS >= 7.3
await pCatch.call(this.call('VM.set_bios_strings', ref, bios_strings), { code: 'MESSAGE_METHOD_UNKNOWN' }, noop)
}
return ref

View File

@ -16,6 +16,7 @@
- Work-around some `ECONNRESET` errors when connecting to XEN-API (PR [#5674](https://github.com/vatesfr/xen-orchestra/pull/5674))
- [Backup] Retry automatically on `resource temporarily unavailable` error (PR [#5612](https://github.com/vatesfr/xen-orchestra/pull/5612))
- [Backup Restore] Don't break in case of malformed logs
- [Backup Restore] Fix `MESSAGE_METHOD_UNKNOWN(VM.set_bios_strings)` with XenServer < 7.3
### Packages to release