added amqp relation departed
This commit is contained in:
parent
a93c7d00b3
commit
968f7708e5
1
hooks/amqp-relation-departed
Symbolic link
1
hooks/amqp-relation-departed
Symbolic link
@ -0,0 +1 @@
|
||||
ceilometer_hooks.py
|
@ -71,6 +71,15 @@ def any_changed():
|
||||
ceilometer_joined()
|
||||
|
||||
|
||||
@hooks.hook("amqp-relation-departed")
|
||||
@restart_on_change(restart_map())
|
||||
def amqp_departed():
|
||||
if 'amqp' not in CONFIGS.complete_contexts():
|
||||
log('amqp relation incomplete. Peer not ready?')
|
||||
return
|
||||
CONFIGS.write_all()
|
||||
|
||||
|
||||
@hooks.hook('config-changed')
|
||||
@restart_on_change(restart_map())
|
||||
def config_changed():
|
||||
|
Loading…
Reference in New Issue
Block a user