From baf07d55a0392fb385ca42c7443ca90d171873e8 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Thu, 11 Nov 2021 10:46:39 +1100 Subject: [PATCH] fix: actually check the project defined routerpattern exists --- node-packages/commons/src/tasks.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/node-packages/commons/src/tasks.ts b/node-packages/commons/src/tasks.ts index 6904ae962f..5946d71eb4 100644 --- a/node-packages/commons/src/tasks.ts +++ b/node-packages/commons/src/tasks.ts @@ -407,6 +407,13 @@ export const getControllerBuildData = async function(deployData: any) { // null is a valid value for routerPatterns... routerPattern = deployTarget.openshift.routerPattern } + routerPattern = lagoonProjectData.routerPattern || routerPattern || lagoonProjectData.openshift.routerPattern + if (lagoonProjectData.routerPattern) { + // this one should not be null + routerPattern = lagoonProjectData.routerPattern + } else { + routerPattern = routerPattern + } var deployTargetName = deployTarget.openshift.name var monitoringConfig: any = {}; try {