Add 'nova-designate-relation-broken' hook

This patchset add 'nova-designate-relation-broken' hook definition
which is required to update nova-compute configuration files when
removing the legacy relation with designate.

Change-Id: I65f5b4ea4f3a6d3bf56a4df2f11da2d750e68e7a
Closes-Bug: 1763614
This commit is contained in:
Tytus Kurek 2018-04-13 13:07:54 +02:00
parent 59cce54c67
commit 4d1220d1fb
1 changed files with 2 additions and 1 deletions

View File

@ -488,7 +488,8 @@ def lxc_changed():
CONFIGS.write(NOVA_CONF)
@hooks.hook('nova-designate-relation-changed')
@hooks.hook('nova-designate-relation-changed',
'nova-designate-relation-broken')
@restart_on_change(restart_map())
def designate_changed():
CONFIGS.write(NOVA_CONF)