Fix Xo#getXapi().

This commit is contained in:
Julien Fontanet 2016-03-02 15:41:27 +01:00
parent 47ed78031a
commit 7cbe5f64ce

View File

@ -313,7 +313,7 @@ export default class {
throw new Error(`object ${object.id} does not belong to a pool`)
}
const xapi = this._xapis[poolId]
const xapi = this._xapisByPool[poolId]
if (!xapi) {
throw new Error(`no connection found for object ${object.id}`)
}