Cleanup create_accounts functions

lib/nova and lib/ceilometer had function calls not in the desired
form.

Change-Id: I6b848e51654a48fe2df6084efdb0f67fd5e180f0
This commit is contained in:
Chris Dent 2014-10-08 12:07:46 +01:00
parent f33e76bf9b
commit 67bc8e8ab9
2 changed files with 4 additions and 7 deletions

View File

@ -73,13 +73,12 @@ function is_ceilometer_enabled {
} }
# create_ceilometer_accounts() - Set up common required ceilometer accounts # create_ceilometer_accounts() - Set up common required ceilometer accounts
#
# Project User Roles # Project User Roles
# ------------------------------------------------------------------ # ------------------------------------------------------------------
# SERVICE_TENANT_NAME ceilometer admin # SERVICE_TENANT_NAME ceilometer admin
# SERVICE_TENANT_NAME ceilometer ResellerAdmin (if Swift is enabled) # SERVICE_TENANT_NAME ceilometer ResellerAdmin (if Swift is enabled)
function create_ceilometer_accounts {
create_ceilometer_accounts() {
local service_tenant=$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }") local service_tenant=$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }")
local admin_role=$(openstack role list | awk "/ admin / { print \$2 }") local admin_role=$(openstack role list | awk "/ admin / { print \$2 }")

View File

@ -330,14 +330,12 @@ function configure_nova {
} }
# create_nova_accounts() - Set up common required nova accounts # create_nova_accounts() - Set up common required nova accounts
#
# Project User Roles # Project User Roles
# ------------------------------------------------------------------ # ------------------------------------------------------------------
# SERVICE_TENANT_NAME nova admin # SERVICE_TENANT_NAME nova admin
# SERVICE_TENANT_NAME nova ResellerAdmin (if Swift is enabled) # SERVICE_TENANT_NAME nova ResellerAdmin (if Swift is enabled)
function create_nova_accounts {
# Migrated from keystone_data.sh
create_nova_accounts() {
local service_tenant=$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }") local service_tenant=$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }")
local admin_role=$(openstack role list | awk "/ admin / { print \$2 }") local admin_role=$(openstack role list | awk "/ admin / { print \$2 }")