Skip to content

Commit

Permalink
Call ha_relation_joined() when upgrading the charm
Browse files Browse the repository at this point in the history
  • Loading branch information
freyes committed Mar 17, 2015
1 parent 738ac3b commit af06d3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hooks/percona_hooks.py
Expand Up @@ -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):
Expand Down

0 comments on commit af06d3f

Please sign in to comment.