summaryrefslogtreecommitdiffstats
path: root/ci/00-maasdeploy.sh
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-10-17 07:40:27 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-10-17 09:43:25 -0500
commit501abc68e6a974d7e5dd480233bf44a2f20fc0b3 (patch)
treec4a30540a7708792b127343b540cd971c1566dea /ci/00-maasdeploy.sh
parent7ae91a059f2b498ebacc66440f5de21eea99033c (diff)
modified to typo error.
Change-Id: I9992d424a6b74578b918c5a749ae86e892ea4084 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/00-maasdeploy.sh')
-rwxr-xr-xci/00-maasdeploy.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/ci/00-maasdeploy.sh b/ci/00-maasdeploy.sh
index 6bd22583..7d9e0070 100755
--- a/ci/00-maasdeploy.sh
+++ b/ci/00-maasdeploy.sh
@@ -321,6 +321,7 @@ elif [ -e ~/.juju/deployconfig.yaml ]; then
cp ~/.juju/deployconfig.yaml ./deployconfig.yaml
fi
+if [ -e ./deployconfig.yaml ]; then
enableiflist=`grep "interface-enable" deployconfig.yaml | cut -d ' ' -f 4 `
datanet=`grep "dataNetwork" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'`
stornet=`grep "storageNetwork" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'`
@@ -361,7 +362,7 @@ fi
# Add the cloud and controller credentials for MAAS for that lab.
jujuver=`juju --version`
-if [ "$jujuver" > "2" ]; then
+if [[ "$jujuver" > "2" ]]; then
addcloud
addcredential
fi