fix(xo-server/xen-servers): pool.id → pool.$id (#3723)

Correctly unregister a Xapi connection from its pool.
This commit is contained in:
Julien Fontanet 2018-11-27 10:24:52 +01:00 committed by GitHub
commit b773f5e821
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -371,8 +371,8 @@ export default class {
delete this._xapis[id]
const { pool } = xapi
if (pool) {
delete this._xapisByPool[pool.id]
if (pool != null) {
delete this._xapisByPool[pool.$id]
}
xapi.xo.uninstall()