~corey.bryant/charms/trusty/glance/amulet-git-fixups

« back to all changes in this revision

Viewing changes to hooks/glance_relations.py

  • Committer: Adam Gandelman
  • Date: 2013-08-20 19:09:15 UTC
  • mto: (29.2.187 glance)
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: adamg@canonical.com-20130820190915-5tf4b0v72htr2nc2
Add generic relation broken hook.

Show diffs side-by-side

added added

removed removed

Lines of Context:
282
282
    [image_service_joined(rid) for rid in relation_ids('image-service')]
283
283
 
284
284
 
 
285
@hooks.hook('ceph-relation-broken',
 
286
            'identity-service-relation-broken',
 
287
            'object-store-relation-broken',
 
288
            'shared-db-relation-broken')
 
289
def relation_broken():
 
290
    CONFIGS.write_all()
 
291
 
 
292
 
285
293
def configure_https():
286
294
    '''
287
295
    Enables SSL API Apache config if appropriate and kicks