Merge "Fix misc issues with removal of ceph relation"

This commit is contained in:
Zuul 2020-09-01 07:53:35 +00:00 committed by Gerrit Code Review
commit e25b09d0ce
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1 @@
glance_relations.py

View File

@ -408,7 +408,15 @@ def ceph_changed():
send_request_if_needed(get_ceph_request())
@hooks.hook('ceph-relation-departed')
@restart_on_change(restart_map())
def ceph_departed():
resolve_CONFIGS()
CONFIGS.write_all()
@hooks.hook('ceph-relation-broken')
@restart_on_change(restart_map())
def ceph_broken():
resolve_CONFIGS()
service = service_name()