aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHui Kang <kangh@us.ibm.com>2015-11-29 19:49:54 +0000
committerHui Kang <kangh@us.ibm.com>2015-11-29 20:17:19 +0000
commit1c9056bcb6e18fc69cda4fe4d63b2c0d09750a18 (patch)
tree71274b601caf764aa538664b3006fee8cb06307d
parentb0159f7ec9920076df9446e389fbb17875480cde (diff)
downloadkolla-1c9056bcb6e18fc69cda4fe4d63b2c0d09750a18.tar.gz
kolla-1c9056bcb6e18fc69cda4fe4d63b2c0d09750a18.zip
Output unique admin id of user and project list
Change-Id: I8983768b6fafdd70f4c8aa7bdcf91af4f50efe70 Closes-Bug: #1520982
-rwxr-xr-xtools/init-runonce4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/init-runonce b/tools/init-runonce
index c0ffc5c4c..39f733797 100755
--- a/tools/init-runonce
+++ b/tools/init-runonce
@@ -70,8 +70,8 @@ fi
# Increase the quota to allow 40 m1.small instances to be created
# Get admin user and tenant IDs
-ADMIN_USER_ID=$(openstack user list | awk '/admin/ {print $2}')
-ADMIN_PROJECT_ID=$(openstack project list | awk '/admin/ {print $2}')
+ADMIN_USER_ID=$(openstack user list | awk '/ admin / {print $2}')
+ADMIN_PROJECT_ID=$(openstack project list | awk '/ admin / {print $2}')
# 40 instances
nova quota-update --instances 40 $ADMIN_PROJECT_ID