removing /v1 suffix from urls
This commit is contained in:
parent
2280ba7c3b
commit
51c37544ed
|
@ -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" \
|
||||
|
|
Loading…
Reference in New Issue