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

This commit is contained in:
shamoon 2024-12-21 19:26:02 -08:00 committed by GitHub
parent f64aa50cc0
commit 96431c6085
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {