summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}