Skip to content

Commit

Permalink
fix: actually check the project defined routerpattern exists
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Nov 10, 2021
1 parent 51cb320 commit baf07d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions node-packages/commons/src/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit baf07d5

Please sign in to comment.