correct the grep in deployment.yaml for MAAS IP. 65/14265/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Tue, 17 May 2016 20:04:52 +0000 (15:04 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Tue, 17 May 2016 20:05:56 +0000 (15:05 -0500)
Change-Id: Idb279cb3952ed0781cafdff14a961669ecbc65c8
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/02-maasdeploy.sh

index 2035780..3a2f681 100755 (executable)
@@ -160,7 +160,7 @@ sudo chown $USER:$USER environments.yaml
 
 echo "... Deployment of maas finish ...."
 
-maas_ip=`grep " ip_address" deployment.yaml | cut -d " "  -f 10`
+maas_ip=`grep " ip_address" deployment.yaml | cut -d ':' -f 2 | sed -e 's/ //'`
 apikey=`grep maas-oauth: environments.yaml | cut -d "'" -f 2`
 maas login maas http://${maas_ip}/MAAS/api/1.0 ${apikey}
 maas maas sshkeys new key="`cat $HOME/.ssh/id_rsa.pub`"