Add update-status hook and ensure that assessment is made of status even on hooks that are not actually registered in the charm codebase

This commit is contained in:
James Page 2015-10-21 14:55:23 +01:00
parent e2f42ba2d6
commit c395c6d907
2 changed files with 2 additions and 1 deletions

View File

@ -721,6 +721,6 @@ def pre_install_hooks():
if __name__ == '__main__':
try:
hooks.execute(sys.argv)
rabbit.assess_status()
except UnregisteredHookError as e:
log('Unknown hook {} - skipping.'.format(e))
rabbit.assess_status()

1
hooks/update-status Symbolic link
View File

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