Skip to content

Commit

Permalink
feat(main): fix up sh
Browse files Browse the repository at this point in the history
Signed-off-by: cuisongliu <[email protected]>
  • Loading branch information
cuisongliu committed Oct 13, 2024
1 parent e3457a9 commit f80826f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion defaults/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ kafka_monitor_ip() {
local_private_ip="0.0.0.0"
advertised_ip_port="${local_private_ip}:9092"
if [[ -n "${OPERATOR_APIS_ADDR}" ]]; then
node_ip=$(curl -f -s "${OPERATOR_APIS_ADDR}:/api/v1/nodes/${NODE_NAME}")
node_ip=$(curl -f -s "${OPERATOR_APIS_ADDR}/api/v1/nodes/${NODE_NAME}")
if [[ $? -eq 0 && -n "$node_ip" ]]; then
echo "kafka_monitor_ip: node_ip=${node_ip}"
advertised_ip_port="${node_ip}:${NODEPORT_DEFAULT_PORT}"
Expand Down
Loading

0 comments on commit f80826f

Please sign in to comment.