fix(portal-api): handle inexistent prometheus service
This commit is contained in:
parent
94c664fecc
commit
fd2916f90e
@ -2632,6 +2632,10 @@ class Data extends EventEmitter {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handlePrometheusServices = (err, services) => {
|
const handlePrometheusServices = (err, services) => {
|
||||||
|
if (err && internals.isNotFound(err)) {
|
||||||
|
return cb(null, []);
|
||||||
|
}
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
return cb(err);
|
return cb(err);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user