Skip to content

Commit

Permalink
cut invalid OVN_NB_DAEMON to make log more readable (#2601)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Apr 5, 2023
1 parent 02b1e14 commit fdc2301
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/images/start-controller.sh
Expand Up @@ -42,6 +42,9 @@ for ((i=0; i<3; i++)); do
export OVN_NB_DAEMON
break
fi
if [ $(echo ${OVN_NB_DAEMON} | wc -c) -gt 64 ]; then
OVN_NB_DAEMON="$(echo ${OVN_NB_DAEMON} | cut -c1-64)..."
fi
echo "invalid ovn-nbctl daemon socket: \"${OVN_NB_DAEMON}\""
unset OVN_NB_DAEMON
pkill -f ovn-nbctl
Expand Down

0 comments on commit fdc2301

Please sign in to comment.