fix maas version check 69/28569/1
authorRyota MIBU <r-mibu@cq.jp.nec.com>
Tue, 14 Feb 2017 02:49:21 +0000 (02:49 +0000)
committerRyota MIBU <r-mibu@cq.jp.nec.com>
Tue, 14 Feb 2017 02:49:21 +0000 (02:49 +0000)
Change-Id: Ifa07fb394ee573439837ca5ae2fff3f1f4c4ea1f
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
ci/02-deploybundle.sh

index c8d35ef..7ac224a 100755 (executable)
@@ -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`