Merge pull request #106 from vatesfr/pierre-patch-name-in-upload-task-description
'Pending tasks' panel: upload task displays patch name
This commit is contained in:
commit
2f328f8f37
@ -415,8 +415,8 @@ export default class Xapi extends XapiBase {
|
||||
|
||||
// -----------------------------------------------------------------
|
||||
|
||||
async uploadPoolPatch (stream, length) {
|
||||
const taskRef = await this._createTask('Patch upload')
|
||||
async uploadPoolPatch (stream, length, patchName = 'unknown') {
|
||||
const taskRef = await this._createTask('Upload: ' + patchName)
|
||||
|
||||
const [, patchRef] = await Promise.all([
|
||||
got('http://' + this.pool.$master.address + '/pool_patch_upload', {
|
||||
@ -466,7 +466,7 @@ export default class Xapi extends XapiBase {
|
||||
})
|
||||
|
||||
const length = await eventToPromise(proxy, 'length')
|
||||
return this.uploadPoolPatch(proxy, length)
|
||||
return this.uploadPoolPatch(proxy, length, patchInfo.name)
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user