parent
1b161843ed
commit
c21c6f3a55
@ -20,6 +20,7 @@ import {
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
debug,
|
debug,
|
||||||
|
extractOpaqueRef,
|
||||||
useUpdateSystem
|
useUpdateSystem
|
||||||
} from '../utils'
|
} from '../utils'
|
||||||
|
|
||||||
@ -211,18 +212,14 @@ export default {
|
|||||||
// -----------------------------------------------------------------
|
// -----------------------------------------------------------------
|
||||||
|
|
||||||
// platform_version < 2.1.1 ----------------------------------------
|
// platform_version < 2.1.1 ----------------------------------------
|
||||||
async uploadPoolPatch (stream, patchName = 'unknown') {
|
async uploadPoolPatch (stream, patchName) {
|
||||||
const taskRef = await this.createTask('Patch upload', patchName)
|
const patchRef = await this.putResource(
|
||||||
|
stream,
|
||||||
const task = this.watchTask(taskRef)
|
'/pool_patch_upload',
|
||||||
const [ patchRef ] = await Promise.all([
|
{
|
||||||
task,
|
task: this.createTask('Patch upload', patchName)
|
||||||
this.putResource(stream, '/pool_patch_upload', {
|
}
|
||||||
query: {
|
).then(extractOpaqueRef)
|
||||||
task_id: taskRef
|
|
||||||
}
|
|
||||||
})
|
|
||||||
])
|
|
||||||
|
|
||||||
return this._getOrWaitObject(patchRef)
|
return this._getOrWaitObject(patchRef)
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user