2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-21 16:39:32 +00:00

Only add [] if the address is ipv6-like

This commit is contained in:
Jarrod Johnson
2026-08-14 14:36:50 -04:00
parent 8d618b354e
commit e9e5fc2516
@@ -194,7 +194,12 @@ if [ -z "$confluent_apikey" ]; then
confluent_apikey=$(cat /etc/confluent/confluent.apikey)
fi
while ! curl -sgf -H "CONFLUENT_NODENAME: $nodename" -H "CONFLUENT_APIKEY: $confluent_apikey" https://[$confluentmgr]/confluent-api/self/deploycfg2 > /etc/confluent/confluent.deploycfg; do
urlmgr=$confluentmgr
case "$confluentmgr" in
*:*) urlmgr="[$confluentmgr]" ;;
esac
while ! curl -sgf -H "CONFLUENT_NODENAME: $nodename" -H "CONFLUENT_APIKEY: $confluent_apikey" https://$urlmgr/confluent-api/self/deploycfg2 > /etc/confluent/confluent.deploycfg; do
sleep 10
done
ifidx=$(cat /tmp/confluent.ifidx 2> /dev/null)