summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2018-02-28 01:29:06 +0000
committerLinda Wang <wangwulin@huawei.com>2018-02-28 01:30:35 +0000
commitbe17d3ee1982a8b943fb70aa7b01bc472e9221bb (patch)
tree457ed1cdd34c9c4f1c40974ec841f162bfe293d3
parent9f8dc4af00ff76614b85727c898c51ad23d02582 (diff)
Remove space in KUBE_MASTER_IP
Change-Id: I779da2fd1f450abd7757484e7dc46e3bf5a6e816 Signed-off-by: Linda Wang <wangwulin@huawei.com>
-rwxr-xr-xci/k8.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/k8.sh b/ci/k8.sh
index e2607333..6bac446c 100755
--- a/ci/k8.sh
+++ b/ci/k8.sh
@@ -9,7 +9,7 @@ configk8(){
cat <<-EOF
export KUBECONFIG=~/joid_config/config
export KUBERNETES_PROVIDER=local
-export KUBE_MASTER_IP=`juju status kubernetes-master --format=yaml | grep public-address | cut -d ":" -f 2 | head -1`
+export KUBE_MASTER_IP=`juju status kubernetes-master --format=yaml | grep public-address | cut -d ":" -f 2 | head -1 | sed "s/^[ \t]*//g"`
export KUBE_MASTER_URL=http://${KUBE_MASTER_IP}:6443
EOF
}