From 088c9dba38329853b6506474f7d1fe06784576f2 Mon Sep 17 00:00:00 2001 From: Ryota MIBU Date: Tue, 14 Feb 2017 02:49:21 +0000 Subject: [PATCH] fix maas version check Change-Id: Ifa07fb394ee573439837ca5ae2fff3f1f4c4ea1f Signed-off-by: Ryota MIBU --- ci/02-deploybundle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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` -- 2.16.6