From e1b9f1aae2df8c83edf4056d4e1a0a93ee1d6df4 Mon Sep 17 00:00:00 2001 From: Joe Beda Date: Tue, 14 Oct 2014 13:07:22 -0700 Subject: [PATCH] Handle empty array in update.sh Fixes #1776 --- hack/e2e-suite/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")