Skip to content

Commit

Permalink
Fix unbound variable error in start_ovs Bash script (antrea-io#1190)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoninbas committed Sep 3, 2020
1 parent ba461b5 commit 78460df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/images/scripts/start_ovs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ function cleanup_ovs_run_files {
rm -rf ${OVS_RUN_DIR}/.conf.db.*~lock~
}

# start_ovs takes one parameter: a boolean value which indicates whether OVS
# kernel HW offload should be enabled.
function start_ovs {
offload=$1
if daemon_is_running ovsdb-server; then
Expand Down Expand Up @@ -87,6 +89,6 @@ while true; do
# OVS was stopped in the container.
log_warning $CONTAINER_NAME "OVS was stopped. Starting it again"

start_ovs
start_ovs $offload
fi
done

0 comments on commit 78460df

Please sign in to comment.