Call ha_relation_joined() when upgrading the charm

This commit is contained in:
Felipe Reyes 2015-03-17 11:37:27 -03:00
parent 738ac3bebf
commit af06d3ff42

View File

@ -163,6 +163,10 @@ def config_changed():
for unit in related_units(r_id):
shared_db_changed(r_id, unit)
if relation_ids('ha'):
# make sure all the HA resources are (re)created
ha_relation_joined()
@hooks.hook('cluster-relation-joined')
def cluster_joined(relation_id=None):