1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 15:20:06 +02:00

fix(portal-api): handle inexistent prometheus service

This commit is contained in:
Sérgio Ramos 2017-08-30 15:15:56 +01:00
parent 94c664fecc
commit fd2916f90e

View File

@ -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);
}