Skip to content

Commit cf461d7

Browse files
committed
test: fix tests
1 parent a1cceae commit cf461d7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/cluster/src/common.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const path = require('path')
22
const { reporter } = require('@dhis2/cli-helpers-engine')
33
const defaults = require('./defaults')
4-
const { customContext } = require('./defaults')
54

65
const clusterDir = 'clusters'
76
const dockerComposeCacheName = 'docker-compose'
@@ -166,7 +165,7 @@ module.exports.makeEnvironment = cfg => {
166165

167166
const resolveCustomContextPath = resolved => {
168167
let contextPath = resolved.customContext
169-
if (customContext === '') {
168+
if (contextPath === '' || contextPath === true) {
170169
contextPath = resolved.name
171170
}
172171
return contextPath ? `/${contextPath}` : ''

0 commit comments

Comments
 (0)