From 85499277af2abc6e80ab05c85c1a83c441029cb4 Mon Sep 17 00:00:00 2001 From: David Ames Date: Wed, 7 Oct 2015 20:50:18 +0000 Subject: [PATCH] Run even on unknown hook --- hooks/cinder_hooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/cinder_hooks.py b/hooks/cinder_hooks.py index e5a916e7..d6946354 100755 --- a/hooks/cinder_hooks.py +++ b/hooks/cinder_hooks.py @@ -540,7 +540,7 @@ def update_nrpe_config(): if __name__ == '__main__': try: hooks.execute(sys.argv) - set_os_workload_status(CONFIGS, REQUIRED_INTERFACES, - charm_func=check_optional_relations) except UnregisteredHookError as e: juju_log('Unknown hook {} - skipping.'.format(e)) + set_os_workload_status(CONFIGS, REQUIRED_INTERFACES, + charm_func=check_optional_relations)