Check for patch existence in Xapi#_getOrUploadPoolPatch().

This commit is contained in:
Julien Fontanet 2015-05-25 14:44:15 +02:00
parent 9bcb2ac094
commit a7bb4b7104

View File

@ -423,6 +423,9 @@ export default class Xapi extends XapiBase {
debug('downloading patch %s', uuid)
const patchInfo = (await this._getXenUpdates()).patches[uuid]
if (!patchInfo) {
throw new Error('no such patch ' + uuid)
}
const PATCH_RE = /\.xsupdate$/
const proxy = new PassThrough()