Skip to content

Commit fdc2301

Browse files
committed
cut invalid OVN_NB_DAEMON to make log more readable (#2601)
1 parent 02b1e14 commit fdc2301

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dist/images/start-controller.sh

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ for ((i=0; i<3; i++)); do
4242
export OVN_NB_DAEMON
4343
break
4444
fi
45+
if [ $(echo ${OVN_NB_DAEMON} | wc -c) -gt 64 ]; then
46+
OVN_NB_DAEMON="$(echo ${OVN_NB_DAEMON} | cut -c1-64)..."
47+
fi
4548
echo "invalid ovn-nbctl daemon socket: \"${OVN_NB_DAEMON}\""
4649
unset OVN_NB_DAEMON
4750
pkill -f ovn-nbctl

0 commit comments

Comments
 (0)