diff --git a/src/xapi.js b/src/xapi.js index 4072b43a0..83b85f45a 100644 --- a/src/xapi.js +++ b/src/xapi.js @@ -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) }