added amqp relation departed
This commit is contained in:
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()
|
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')
|
@hooks.hook('config-changed')
|
||||||
@restart_on_change(restart_map())
|
@restart_on_change(restart_map())
|
||||||
def config_changed():
|
def config_changed():
|
||||||
|
|||||||
Reference in New Issue
Block a user