Chore: warn and dont fail for invalid services (#4468)

This commit is contained in:
shamoon 2024-12-21 19:26:02 -08:00 committad av GitHub
förälder f64aa50cc0
incheckning 96431c6085
Ingen känd nyckel hittad för denna signaturen i databasen
GPG-nyckel ID: B5690EEEBB952194

Visa fil

@ -25,6 +25,10 @@ function parseServicesToGroups(services) {
const serviceGroupServices = [];
serviceGroup[name].forEach((entries) => {
const entryName = Object.keys(entries)[0];
if (!entries[entryName]) {
logger.warn(`Error parsing service "${entryName}" from config. Ensure required fields are present.`);
return;
}
if (Array.isArray(entries[entryName])) {
groups = groups.concat(parseServicesToGroups([{ [entryName]: entries[entryName] }]));
} else {