summaryrefslogtreecommitdiffstats
path: root/ci/02-deploybundle.sh
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2017-02-14 02:49:21 +0000
committerRyota MIBU <r-mibu@cq.jp.nec.com>2017-02-14 02:49:21 +0000
commit088c9dba38329853b6506474f7d1fe06784576f2 (patch)
tree323d87e4d920413f20c38d28235fc59be92fdac2 /ci/02-deploybundle.sh
parentd5f0a7dbbf67ed46624701e6f03a647b6766aec1 (diff)
fix maas version check
Change-Id: Ifa07fb394ee573439837ca5ae2fff3f1f4c4ea1f Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'ci/02-deploybundle.sh')
-rwxr-xr-xci/02-deploybundle.sh2
1 files changed, 1 insertions, 1 deletions
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`