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:
parent
43911709a2
commit
f71fe595ce
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue