From b459f74a8ca7bb2291435a367c99024f4b30702d Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Tue, 8 Jan 2019 14:51:57 +0100 Subject: [PATCH] fix(xen-api/getRecord): pass type and ref to _wrapRecord --- packages/xen-api/src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/xen-api/src/index.js b/packages/xen-api/src/index.js index 4694a6c26..c79454adb 100644 --- a/packages/xen-api/src/index.js +++ b/packages/xen-api/src/index.js @@ -538,6 +538,8 @@ export class Xapi extends EventEmitter { async getRecord(type, ref) { return this._wrapRecord( + type, + ref, await this._sessionCall(`${type}.get_record`, [ref]) ) }