From e9e5fc2516ce1793f7933257d335ca115cf0f684 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 14 Aug 2026 14:36:50 -0400 Subject: [PATCH] Only add [] if the address is ipv6-like --- .../var/lib/dracut/hooks/pre-trigger/01-confluent.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/confluent_osdeploy/suse16/initramfs/var/lib/dracut/hooks/pre-trigger/01-confluent.sh b/confluent_osdeploy/suse16/initramfs/var/lib/dracut/hooks/pre-trigger/01-confluent.sh index c3b68ed5..e70bdef7 100644 --- a/confluent_osdeploy/suse16/initramfs/var/lib/dracut/hooks/pre-trigger/01-confluent.sh +++ b/confluent_osdeploy/suse16/initramfs/var/lib/dracut/hooks/pre-trigger/01-confluent.sh @@ -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)