~ionutbalutoiu/charms/trusty/neutron-api/next

« back to all changes in this revision

Viewing changes to hooks/neutron_api_hooks.py

  • Committer: Liam Young
  • Date: 2014-10-20 10:21:03 UTC
  • mfrom: (57.1.1 trunk)
  • Revision ID: liam.young@canonical.com-20141020102103-0bqj1zvl7i5k3r6p
[gnuoy,r=jamespage] Fix db migration running when db relation has not been setup

Show diffs side-by-side

added added

removed removed

Lines of Context:
294
294
@restart_on_change(restart_map())
295
295
def neutron_api_relation_changed():
296
296
    CONFIGS.write(NEUTRON_CONF)
297
 
    conditional_neutron_migration()
 
297
    if 'shared-db' in CONFIGS.complete_contexts():
 
298
        conditional_neutron_migration()
298
299
 
299
300
 
300
301
@hooks.hook('neutron-plugin-api-relation-joined')