Fix the creation of endpoints in keystone_data.sh

When using bin/keystone_data.sh to create the barbican data it will
fail creating the endpionts because of invalid syntax for the openstack
endpoint create command.  This CR fixes that, making the public and
internal endpoint commands separate as required by the openstack
command.

Change-Id: I3f6d04888ad816e47e7e5882f13afffbb5b366c0
Closes-Bug: #1676548
This commit is contained in:
Steve Heyman 2017-03-27 14:36:53 -05:00
parent 876e5eb940
commit 1bd65b6b9a
1 changed files with 5 additions and 2 deletions

View File

@ -190,7 +190,10 @@ if [[ "$ENABLED_SERVICES" =~ "barbican" ]]; then
openstack endpoint create \
$BARBICAN_SERVICE \
--region RegionOne \
--publicurl "http://$SERVICE_HOST:9311" \
--internalurl "http://$SERVICE_HOST:9311"
internal "http://$SERVICE_HOST:9311"
openstack endpoint create \
$BARBICAN_SERVICE \
--region RegionOne \
public "http://$SERVICE_HOST:9311"
fi
fi