From fd2916f90efdd39c4b86b27f28f0fcc70130dda6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Wed, 30 Aug 2017 15:15:56 +0100 Subject: [PATCH] fix(portal-api): handle inexistent prometheus service --- packages/portal-api/lib/data/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/portal-api/lib/data/index.js b/packages/portal-api/lib/data/index.js index 18b527b0..b0835174 100644 --- a/packages/portal-api/lib/data/index.js +++ b/packages/portal-api/lib/data/index.js @@ -2632,6 +2632,10 @@ class Data extends EventEmitter { }; const handlePrometheusServices = (err, services) => { + if (err && internals.isNotFound(err)) { + return cb(null, []); + } + if (err) { return cb(err); }