diff --git a/utils/apiUtil.js b/utils/apiUtil.js index 3b40bd18f..c6134d402 100644 --- a/utils/apiUtil.js +++ b/utils/apiUtil.js @@ -413,7 +413,7 @@ module.exports = { await sleepMS(2000) count++; } - if (value === undefined) { + if (podsNames === undefined) { throw new Error(`THE POD name with ${labelName} returned undefined even after 5 tries. GIVING UP.`); }