From e3c2170ec7bec4f7ef2769e5faf51137b3db07d8 Mon Sep 17 00:00:00 2001 From: shashidharatd Date: Mon, 18 Sep 2017 07:23:33 +0530 Subject: [PATCH] Fix couple of minor issues in federation deployment scripts --- federation/cluster/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/federation/cluster/common.sh b/federation/cluster/common.sh index 51da945c9c3..044a0efa6a9 100644 --- a/federation/cluster/common.sh +++ b/federation/cluster/common.sh @@ -52,7 +52,7 @@ function federation_cluster_contexts() { federation_contexts=() for context in ${contexts}; do # Skip federation context - if [[ "${context}" == "${FEDERATION_NAME}" ]]; then + if [[ "${context}" == "${FEDERATION_KUBE_CONTEXT}" ]]; then continue fi # Skip contexts not beginning with "federation" @@ -61,7 +61,7 @@ function federation_cluster_contexts() { fi federation_contexts+=("${context}") done - echo ${federation_contexts[@]} + echo ${federation_contexts[@]:-} }