hooks/hooks.py
def process_multisite_relations():
    """Re-trigger any pending master/slave relations"""
    for r_id in relation_ids('master'):
        master_relation_joined(r_id)
    for r_id in relation_ids('slave'):
        for unit in related_units(r_id):
            slave_relation_changed(r_id, unit)
Re-trigger any pending master/slave relations
Re-trigger any pending master/slave relations
Re - trigger any pending master / slave relations
def process_multisite_relations():
    for r_id in relation_ids('master'):
        master_relation_joined(r_id)
    for r_id in relation_ids('slave'):
        for unit in related_units(r_id):
            slave_relation_changed(r_id, unit)
def process_multisite_relations ( ) : for r_id in relation_ids ( 'master' ) : master_relation_joined ( r_id ) for r_id in relation_ids ( 'slave' ) : for unit in related_units ( r_id ) : slave_relation_changed ( r_id , unit )
Re-trigger any pending master/slave relations
Re - trigger any pending master / slave relations
"""Re-trigger any pending master/slave relations"""