fix(Xapi#_init): fix promisify() usage

This commit is contained in:
Julien Fontanet 2016-10-11 17:22:23 +02:00
parent bd0c747d98
commit 2c35ee11b3

View File

@ -512,7 +512,7 @@ export class Xapi extends EventEmitter {
timeout: 10
})
this._xmlRpcCall = client.methodCall::promisify(client)
this._xmlRpcCall = promisify(client.methodCall, client)
}
_addObject (type, ref, object) {