File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -175,25 +175,26 @@ function start_zaqar {
175175
176176# stop_zaqar() - Stop running processes
177177function stop_zaqar {
178+ local serv
178179 # Kill the zaqar screen windows
179180 for serv in zaqar-server; do
180181 screen -S $SCREEN_NAME -p $serv -X kill
181182 done
182183}
183184
184185function create_zaqar_accounts {
185- SERVICE_TENANT =$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }")
186+ local service_tenant =$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }")
186187 ADMIN_ROLE=$(openstack role list | awk "/ admin / { print \$2 }")
187188
188- ZAQAR_USER =$(get_or_create_user "zaqar" \
189- "$SERVICE_PASSWORD" $SERVICE_TENANT )
190- get_or_add_user_role $ADMIN_ROLE $ZAQAR_USER $SERVICE_TENANT
189+ local zaqar_user =$(get_or_create_user "zaqar" \
190+ "$SERVICE_PASSWORD" $service_tenant )
191+ get_or_add_user_role $ADMIN_ROLE $zaqar_user $service_tenant
191192
192193 if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
193194
194- ZAQAR_SERVICE =$(get_or_create_service "zaqar" \
195+ local zaqar_service =$(get_or_create_service "zaqar" \
195196 "queuing" "Zaqar Service")
196- get_or_create_endpoint $ZAQAR_SERVICE \
197+ get_or_create_endpoint $zaqar_service \
197198 "$REGION_NAME" \
198199 "$ZAQAR_SERVICE_PROTOCOL://$ZAQAR_SERVICE_HOST:$ZAQAR_SERVICE_PORT" \
199200 "$ZAQAR_SERVICE_PROTOCOL://$ZAQAR_SERVICE_HOST:$ZAQAR_SERVICE_PORT" \
You can’t perform that action at this time.
0 commit comments