1706
1707
master_ip = hookenv.relation_get('private-address', master)
1707
1708
wait_for_db(db='postgres', user='juju_replication', host=master_ip)
1711
1712
local_state['state'] = 'hot standby'
1712
1713
local_state['following'] = master
1714
1717
elif local_state['following'] == master:
1715
1718
log("I am a hot standby already following {}".format(master))