Use db_host when configurating db connection to support HA

This commit is contained in:
James Page 2013-03-12 16:44:14 +00:00
parent 0c9f3e8310
commit a64e96618e
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ function db_changed {
"$JUJU_REMOTE_UNIT-$JUJU_RELATION_ID"
fi
local db_host=$(relation-get $r_args private-address)
local db_host=$(relation-get $r_args db_host)
local db_password=$(relation-get $r_args password)
if [[ -z "$db_host" ]] || [[ -z "$db_password" ]] ; then