Write out configurations in ha-changed to avoid missing switch to VIP's

This commit is contained in:
James Page 2014-09-30 10:57:04 +01:00
parent 999cfae8c1
commit 0531c71d1d
1 changed files with 2 additions and 0 deletions

View File

@ -306,6 +306,7 @@ def ha_joined():
@hooks.hook('ha-relation-changed')
@restart_on_change(restart_map())
def ha_changed():
clustered = relation_get('clustered')
if not clustered or clustered in [None, 'None', '']:
@ -318,6 +319,7 @@ def ha_changed():
identity_joined(rid=rid)
for rid in relation_ids('neutron-api'):
neutron_api_relation_joined(rid=rid)
CONFIGS.write_all()
def main():