removing /v1 suffix from urls

This commit is contained in:
yolanda.robla@canonical.com 2013-03-27 16:57:22 +01:00
parent 2280ba7c3b
commit 51c37544ed
1 changed files with 2 additions and 2 deletions

View File

@ -340,7 +340,7 @@ function ha_relation_changed() {
if [ -n "$clustered" ] && is_leader 'res_glance_vip'; then
local port=$((9292 + 10000))
local host=$(config-get vip)
local url="http://$host:$port/v1"
local url="http://$host:$port"
for r_id in `relation-ids identity-service`; do
relation-set -r $r_id service="glance" \
region="$(config-get region)" \
@ -409,7 +409,7 @@ function ha_relation_changed() {
if [ -n "$clustered" ] && is_leader 'res_glance_vip'; then
local host=$(config-get vip)
https && local scheme="https" || local scheme="http"
local url="$scheme://$host:9292/v1"
local url="$scheme://$host:9292"
for r_id in `relation-ids identity-service`; do
relation-set -r $r_id service="glance" \