mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 06:48:47 +00:00
Better handle malformed docker labels (#2552)
This commit is contained in:
parent
ccad62b5c2
commit
aa7cfa58ff
1 changed files with 10 additions and 0 deletions
|
@ -102,6 +102,16 @@ export async function servicesFromDocker() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!constructedService.name || !constructedService.group) {
|
||||||
|
logger.error(
|
||||||
|
`Error constructing service using homepage labels for container '${containerName.replace(
|
||||||
|
/^\//,
|
||||||
|
"",
|
||||||
|
)}'. Ensure required labels are present.`,
|
||||||
|
);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return constructedService;
|
return constructedService;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue