Add debug traces for patch install.

This commit is contained in:
Julien Fontanet 2015-05-06 16:49:26 +02:00
parent 738d657c8e
commit cfc42906b9

View File

@ -313,6 +313,8 @@ export default class Xapi extends XapiBase {
return this.getObjectByUuid(uuid)
} catch (error) {}
debug('downloading patch', uuid)
const patchInfo = (await this._getXenUpdates()).patches[uuid]
const PATCH_RE = /\.xsupdate$/
@ -340,6 +342,8 @@ export default class Xapi extends XapiBase {
const patch = await this._getOrUploadPoolPatch(patchUuid)
const host = this.getObject(hostId)
debug('installing patch', patchUuid)
await this.call('pool_patch.apply', patch.$ref, host.$ref)
}