diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2016-05-17 15:04:52 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2016-05-17 15:05:56 -0500 |
commit | 02af9879d42a4eebc1d7439fe42caf49e6cd1af0 (patch) | |
tree | 377758aff2999a0323718f9159c2ae2160839e12 | |
parent | a72a52456135c2e298feeef6d75745ed657216c5 (diff) |
correct the grep in deployment.yaml for MAAS IP.
Change-Id: Idb279cb3952ed0781cafdff14a961669ecbc65c8
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
-rwxr-xr-x | ci/02-maasdeploy.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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`" |