mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 14:10:04 +02:00
fix(portal-api): prevent crash on cp-watcher when no services
This commit is contained in:
parent
2a34632269
commit
eddc8712b0
@ -73,6 +73,10 @@ module.exports = class ContainerPilotWatcher extends Events {
|
|||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!services || !services.length) {
|
||||||
|
return next();
|
||||||
|
}
|
||||||
|
|
||||||
VAsync.forEachParallel({
|
VAsync.forEachParallel({
|
||||||
inputs: services,
|
inputs: services,
|
||||||
func: getInstances
|
func: getInstances
|
||||||
|
Loading…
Reference in New Issue
Block a user