Skip to content
Snippets Groups Projects
Commit bbbae708 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(host-rules): try/catch updating from config

parent 735121fd
Branches
Tags 17.11.3
No related merge requests found
......@@ -154,7 +154,16 @@ async function mergeRenovateConfig(config) {
// istanbul ignore if
if (resolvedConfig.hostRules) {
logger.info('Setting hostRules from config');
resolvedConfig.hostRules.forEach(hostRules.update);
for (const rule of resolvedConfig.hostRules) {
try {
hostRules.update(rule);
} catch (err) {
logger.warn(
{ err, config: rule },
'Error setting hostRule from config'
);
}
}
delete resolvedConfig.hostRules;
}
returnConfig = mergeChildConfig(returnConfig, resolvedConfig);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment