From 8fe771b4a3cef7d81f471c3611f3117536df388d Mon Sep 17 00:00:00 2001 From: Filip Grzadkowski Date: Tue, 26 May 2015 17:04:57 +0200 Subject: [PATCH] Fix WARNING during kube-push.sh --- cluster/gce/util.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index db3ba89187..56aa38ceed 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -406,7 +406,7 @@ function create-node-template { --network "${NETWORK}" \ $2 \ --can-ip-forward \ - --metadata-from-file "$3" "$4"; then + --metadata-from-file "$3","$4"; then if (( attempt > 5 )); then echo -e "${color_red}Failed to create instance template $1 ${color_norm}" >&2 exit 2 @@ -459,7 +459,7 @@ function add-instance-metadata-from-file { if ! gcloud compute instances add-metadata "${instance}" \ --project "${PROJECT}" \ --zone "${ZONE}" \ - --metadata-from-file "${kvs[@]}"; then + --metadata-from-file $(IFS=, ; echo "${kvs[*]}"); then if (( attempt > 5 )); then echo -e "${color_red}Failed to add instance metadata in ${instance} ${color_norm}" exit 2