Skip to content

Commit 09c65c3

Browse files
authored
Merge pull request #550 from hidekazuna/setup_OPENSTACK_CLOUD
🐛 Set up OPENSTACK_CLOUD environment variable in env.rc
2 parents 45f1cc3 + fe7f0a5 commit 09c65c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/env.rc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ if [[ "$CAPO_DOMAIN_ID" = "null" ]]; then
7878
fi
7979
CAPO_CACERT_ORIGINAL=$(echo "$CAPO_OPENSTACK_CLOUD_YAML_CONTENT" | yq r - clouds.${CAPO_CLOUD}.cacert)
8080

81+
export OPENSTACK_CLOUD="${CAPO_CLOUD}"
82+
8183
# Build OPENSTACK_CLOUD_YAML_B64
8284
CAPO_OPENSTACK_CLOUD_YAML_SELECTED_CLOUD_B64=$(echo "${CAPO_OPENSTACK_CLOUD_YAML_CONTENT}" | yq r - clouds.${CAPO_CLOUD} | yq p - clouds.${CAPO_CLOUD} | base64 --wrap=0)
8385
export OPENSTACK_CLOUD_YAML_B64="${CAPO_OPENSTACK_CLOUD_YAML_SELECTED_CLOUD_B64}"

0 commit comments

Comments
 (0)