Run even on unknown hook

This commit is contained in:
David Ames 2015-10-07 20:50:18 +00:00
parent a44d1282c1
commit 85499277af
1 changed files with 2 additions and 2 deletions

View File

@ -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)