diff --git a/hack/e2e-suite/update.sh b/hack/e2e-suite/update.sh index c4b1e665427..51d4cd3fa4d 100755 --- a/hack/e2e-suite/update.sh +++ b/hack/e2e-suite/update.sh @@ -44,7 +44,7 @@ function validate() { local id num_running=0 - for id in "${pod_id_list[@]}"; do + for id in "${pod_id_list[@]+${pod_id_list[@]}}"; do local template_string current_status current_image host_ip template_string="{{and ((index .CurrentState.Info \"${CONTROLLER_NAME}\").State.Running) .CurrentState.Info.net.State.Running}}" current_status=$($KUBECFG -template="${template_string}" get "pods/$id")