Skip to content

Commit

Permalink
using $OS_REGION_NAME instead of hardcoded RegionOne, got overwritten…
Browse files Browse the repository at this point in the history
… in previous commit

Partial-Bug: #1547784

Change-Id: Iefd864f53d25d872114102e0b47259ef49fe2a24
  • Loading branch information
moghea committed Feb 24, 2016
1 parent 1830ec6 commit d6c8506
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -212,12 +212,12 @@ source /etc/contrail/openstackrc
if [[ -n "$ENABLE_ENDPOINTS" ]]; then
if [ -z $(endpoint_lookup $NOVA_SERVICE) ]; then
if [ $ubuntu_liberty -eq 1 ]; then
openstack endpoint create --region RegionOne $NOVA_SERVICE \
openstack endpoint create --region $OS_REGION_NAME $NOVA_SERVICE \
--publicurl http://$CONTROLLER:8774/v1.1/%\(tenant_id\)s \
--adminurl http://$CONTROLLER:8774/v1.1/%\(tenant_id\)s \
--internalurl http://$CONTROLLER:8774/v1.1/%\(tenant_id\)s
else
keystone endpoint-create --region RegionOne --service-id $NOVA_SERVICE \
keystone endpoint-create --region $OS_REGION_NAME --service-id $NOVA_SERVICE \
--publicurl 'http://'$CONTROLLER':$(compute_port)s/v1.1/$(tenant_id)s' \
--adminurl 'http://'$CONTROLLER:'$(compute_port)s/v1.1/$(tenant_id)s' \
--internalurl 'http://'$CONTROLLER:'$(compute_port)s/v1.1/$(tenant_id)s'
Expand Down

0 comments on commit d6c8506

Please sign in to comment.