Skip to content

Commit

Permalink
Chore: warn and dont fail for invalid services (#4468)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon authored Dec 22, 2024
1 parent f64aa50 commit 96431c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/config/service-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 96431c6

Please sign in to comment.