fix(xo-server/disk.import): fix xapi._getOrWaitObject call

Maybe related to #6282

Introduced by 5063a6982
This commit is contained in:
Julien Fontanet
2022-06-10 17:34:33 +02:00
parent 4186592f9f
commit 7387ac2411
2 changed files with 5 additions and 1 deletions

View File

@@ -11,6 +11,8 @@
> Users must be able to say: “I had this issue, happy to know it's fixed”
- [VDI Import] Fix `this._getOrWaitObject is not a function`
### Packages to release
> When modifying a package, add it here with its release type.
@@ -25,4 +27,6 @@
<!--packages-start-->
- xo-server patch
<!--packages-end-->

View File

@@ -215,7 +215,7 @@ async function handleImport(req, res, { type, name, description, vmdkData, srId,
throw new JsonRpcError(`Unknown disk type, expected "iso", "vhd" or "vmdk", got ${type}`)
}
const vdi = await this._getOrWaitObject(
const vdi = await xapi._getOrWaitObject(
await xapi.VDI_create({
name_description: description,
name_label: name,