From: Linda Wang Date: Wed, 28 Feb 2018 01:29:06 +0000 (+0000) Subject: Remove space in KUBE_MASTER_IP X-Git-Tag: opnfv-6.0.0~11 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F91%2F52791%2F1;p=joid.git Remove space in KUBE_MASTER_IP Change-Id: I779da2fd1f450abd7757484e7dc46e3bf5a6e816 Signed-off-by: Linda Wang --- 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 }