From: Ryota MIBU Date: Tue, 14 Feb 2017 02:49:21 +0000 (+0000) Subject: fix maas version check X-Git-Tag: danube.1.0~41 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F69%2F28569%2F1;p=joid.git fix maas version check Change-Id: Ifa07fb394ee573439837ca5ae2fff3f1f4c4ea1f Signed-off-by: Ryota MIBU --- diff --git a/ci/02-deploybundle.sh b/ci/02-deploybundle.sh index c8d35ef3..7ac224ae 100755 --- a/ci/02-deploybundle.sh +++ b/ci/02-deploybundle.sh @@ -49,7 +49,7 @@ check_status() { PROFILE=maas MAAS_IP=$(grep " ip_address" deployconfig.yaml | cut -d ':' -f 2 | sed -e 's/ //') API_SERVERMAAS="http://$MAAS_IP/MAAS/" -if [ "$maasver" > "2" ]; then +if [[ "$maasver" > "2" ]]; then API_KEY=`sudo maas-region apikey --username=ubuntu || true` else API_KEY=`sudo maas-region-admin apikey --username=ubuntu || true`