fix(xapi/call{,Async}): fix call to retry

Introduced by 3bb7d2c29
This commit is contained in:
Julien Fontanet 2021-03-30 15:42:05 +02:00
parent b475b265ae
commit 6e780a3876

View File

@ -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))
}
}