Skip to content

Commit

Permalink
fix KEEPALIVED_IP
Browse files Browse the repository at this point in the history
  • Loading branch information
lhns committed Jan 9, 2021
1 parent 1b5b473 commit f72cca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if [ -z "$KEEPALIVED_IP" ]; then
fi

if [ -z "$KEEPALIVED_IP" ]; then
export KEEPALIVED_IP="$(echo "$node_metadata" | jq -r '.ManagerStatus.Addr|select(.!=null)|split(":")[0]')"
export KEEPALIVED_IP="$(echo "$nodes_metadata" | jq -r 'map(select(.Self))[0].ManagerStatus.Addr|select(.!=null)|split(":")[0]')"
fi

if [ -z "$KEEPALIVED_UNICAST_PEERS" ]; then
Expand Down

0 comments on commit f72cca4

Please sign in to comment.