diff --git a/packages/portal-api/lib/watch/container-pilot.js b/packages/portal-api/lib/watch/container-pilot.js index d909c35e..89206bc4 100644 --- a/packages/portal-api/lib/watch/container-pilot.js +++ b/packages/portal-api/lib/watch/container-pilot.js @@ -73,6 +73,10 @@ module.exports = class ContainerPilotWatcher extends Events { return next(err); } + if (!services || !services.length) { + return next(); + } + VAsync.forEachParallel({ inputs: services, func: getInstances