Tweaked check on ha changed relation to be cluster focussed

This commit is contained in:
James Page 2013-02-07 09:39:12 +00:00
parent 0857109a8e
commit 48cc15239d
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ function ha_relation_joined() {
function ha_relation_changed() {
local clustered=`relation-get clustered`
if eligible_leader 'res_glance_vip'; then
if [ -n "$clustered" ] && is_leader 'res_glance_vip'; then
local port=$((9292 + 10000))
local host=$(config-get vip)
local url="http://$host:$port/v1"