diff --git a/src/lib/core.ts b/src/lib/core.ts index 72c1b5e7..3361f322 100644 --- a/src/lib/core.ts +++ b/src/lib/core.ts @@ -265,18 +265,17 @@ export const getGlobalSpotPrices = async (options?: { minVCPU, minMemoryGiB, platforms, - limit, reduceAZ, accessKeyId, secretAccessKey, onRegionFetch, onRegionFetchFail, onFetchComplete, - } = options || { - limit: defaults.limit, - }; + } = options || {}; + + let { limit, regions, instanceTypes } = options || {}; - let { regions, instanceTypes } = options || {}; + if (limit === undefined) limit = defaults.limit; if (regions === undefined || !regions.length) regions = defaultRegions;