Fix Xo#getXapi() with identifier.
This commit is contained in:
parent
cfb49f9136
commit
2a02583e27
@ -305,7 +305,7 @@ export default class {
|
|||||||
// Returns the XAPI connection associated to an object.
|
// Returns the XAPI connection associated to an object.
|
||||||
getXapi (object, type) {
|
getXapi (object, type) {
|
||||||
if (isString(object)) {
|
if (isString(object)) {
|
||||||
object = this.getObject(object, type)
|
object = this._xo.getObject(object, type)
|
||||||
}
|
}
|
||||||
|
|
||||||
const { $pool: poolId } = object
|
const { $pool: poolId } = object
|
||||||
|
Loading…
Reference in New Issue
Block a user