Run even on unknown hook

This commit is contained in:
David Ames 2015-10-07 20:46:49 +00:00
parent 1322e4a824
commit 39fac6157a

View File

@ -627,10 +627,10 @@ def update_nrpe_config():
def 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)
if __name__ == '__main__':