fix(xapi/VDI_importContent): format is not optional
This commit is contained in:
parent
af4cc1f574
commit
6c08afaa0e
@ -1,5 +1,6 @@
|
||||
'use strict'
|
||||
|
||||
const assert = require('node:assert').strict
|
||||
const CancelToken = require('promise-toolbox/CancelToken')
|
||||
const pCatch = require('promise-toolbox/catch')
|
||||
const pRetry = require('promise-toolbox/retry')
|
||||
@ -86,6 +87,8 @@ class Vdi {
|
||||
}
|
||||
|
||||
async importContent(ref, stream, { cancelToken = CancelToken.none, format }) {
|
||||
assert.notEqual(format, undefined)
|
||||
|
||||
if (stream.length === undefined) {
|
||||
throw new Error('Trying to import a VDI without a length field. Please report this error to Xen Orchestra.')
|
||||
}
|
||||
|
@ -30,6 +30,7 @@
|
||||
<!--packages-start-->
|
||||
|
||||
- @vates/async-each major
|
||||
- @xen-orchestra/xapi patch
|
||||
- xo-cli patch
|
||||
- xo-web patch
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user