Fix log update-status error

This patch adds a dummy update_status function so that the update-status
hook 'has' a function to run and thus silence the log error.

Change-Id: Ia0ed9367809fd47c10ad6a57011555589a7d940c
Closes-bug: #1837639
This commit is contained in:
Alex Kavanagh 2019-07-23 17:05:39 +01:00 committed by Alex Kavanagh (tinwood)
parent 43911709a2
commit f71fe595ce
1 changed files with 9 additions and 0 deletions

View File

@ -602,6 +602,15 @@ def send_auth_key():
**{'pacemaker-key': key})
@hooks.hook('update-status')
def dummy_update_status():
"""Provide implementation to silence missing hook handler error
See bug/1837639
"""
pass
if __name__ == '__main__':
try:
hooks.execute(sys.argv)