fix(xo-server/disk.import): fix xapi._getOrWaitObject call
Maybe related to #6282
Introduced by 5063a6982
This commit is contained in:
@@ -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-->
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user