Run even on unknown hook
This commit is contained in:
parent
1322e4a824
commit
39fac6157a
@ -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__':
|
||||
|
Loading…
Reference in New Issue
Block a user