Skip to content

Commit 3cd35f6

Browse files
authored
chore: udpate mysql orc register cluster alias command (#2371)
1 parent 7b34012 commit 3cd35f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/mysql/scripts/init-mysql-instance-for-orc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ register_cluster_in_orchestrator() {
7777
fi
7878

7979
# Set alias via API
80-
curl --silent -X GET "http://${orchestrator_url}/api/set-cluster-alias/${instance}?alias=${cluster_alias}"
80+
curl --silent -X GET "http://${orchestrator_url}/api/set-cluster-alias/${cluster_info}?alias=${cluster_alias}"
8181
sleep 3
8282
result=""
8383
attempt=0
@@ -89,7 +89,7 @@ register_cluster_in_orchestrator() {
8989
fi
9090
mysql_note "Cluster alias not set yet, waiting... (attempt $((attempt + 1))/$max_attempts)"
9191
attempt=$((attempt + 1))
92-
curl --silent -X GET "http://${orchestrator_url}/api/set-cluster-alias/${instance}?alias=${cluster_alias}"
92+
curl --silent -X GET "http://${orchestrator_url}/api/set-cluster-alias/${cluster_info}?alias=${cluster_alias}"
9393
sleep 3
9494
done
9595
if [ $attempt -eq $max_attempts ]; then

0 commit comments

Comments
 (0)