Skip to content

Commit e119281

Browse files
fix: extract SYSTEM_DOMAIN correctly from toolsmiths-env/metadata file (#179)
- Before this commit, the tasks assume that envs associated with the "toolsmiths-env" input are always under the domain "cf-app.com", which is no longer always the case. - Instead, extract the SYSTEM_DOMAIN from the CF API value provided by the "toolsmiths-env" input. [Fixes #178]
1 parent 0cbf33a commit e119281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function setup_bosh_env_vars() {
8686
set +x
8787
if [ -d toolsmiths-env ]; then
8888
eval "$(bbl print-env --metadata-file toolsmiths-env/metadata)"
89-
export SYSTEM_DOMAIN="$(cat toolsmiths-env/metadata | jq -r .name).cf-app.com"
89+
export SYSTEM_DOMAIN="$(cat toolsmiths-env/metadata | jq -r '.cf.api_url | sub("api."; "")')"
9090
export TCP_DOMAIN="tcp.${SYSTEM_DOMAIN}"
9191
else
9292
if [ -d bbl-state ]; then

0 commit comments

Comments
 (0)