Run even on unknown hook

This commit is contained in:
David Ames 2015-10-07 13:52:37 -07:00
parent 0acb114750
commit 7041c9316b

View File

@ -356,7 +356,7 @@ def ha_relation_destroyed():
if __name__ == '__main__':
try:
hooks.execute(sys.argv)
set_os_workload_status(CONFIGS, REQUIRED_INTERFACES,
charm_func=check_optional_relations)
except UnregisteredHookError as e:
log('Unknown hook {} - skipping.'.format(e))
set_os_workload_status(CONFIGS, REQUIRED_INTERFACES,
charm_func=check_optional_relations)