From: Narinder Gupta Date: Tue, 17 May 2016 20:04:52 +0000 (-0500) Subject: correct the grep in deployment.yaml for MAAS IP. X-Git-Tag: colorado.1.0~185 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=02af9879d42a4eebc1d7439fe42caf49e6cd1af0;p=joid.git correct the grep in deployment.yaml for MAAS IP. Change-Id: Idb279cb3952ed0781cafdff14a961669ecbc65c8 Signed-off-by: Narinder Gupta --- diff --git a/ci/02-maasdeploy.sh b/ci/02-maasdeploy.sh index 20357803..3a2f6817 100755 --- a/ci/02-maasdeploy.sh +++ b/ci/02-maasdeploy.sh @@ -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`"