diff --git a/@xen-orchestra/xapi/src/index.js b/@xen-orchestra/xapi/src/index.js index 373a73654..6ecc59459 100644 --- a/@xen-orchestra/xapi/src/index.js +++ b/@xen-orchestra/xapi/src/index.js @@ -142,7 +142,7 @@ exports.Xapi = Xapi function pRetryWrap(fn, options) { const getOptions = typeof options !== 'function' ? () => options : options return function () { - return pRetry.call(() => fn.apply(this, arguments), getOptions.apply(this, arguments)) + return pRetry(() => fn.apply(this, arguments), getOptions.apply(this, arguments)) } }