From 02af9879d42a4eebc1d7439fe42caf49e6cd1af0 Mon Sep 17 00:00:00 2001 From: Narinder Gupta Date: Tue, 17 May 2016 15:04:52 -0500 Subject: [PATCH] correct the grep in deployment.yaml for MAAS IP. Change-Id: Idb279cb3952ed0781cafdff14a961669ecbc65c8 Signed-off-by: Narinder Gupta --- ci/02-maasdeploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`" -- 2.16.6