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: I1f008b1cb0958e90967a6a4e95fb0fddb37795f4
Closes-bug: #1837639
This commit is contained in:
Alex Kavanagh 2019-07-24 11:43:01 +01:00
parent 786906d559
commit 9fcc8e55a5
1 changed files with 6 additions and 0 deletions

View File

@ -233,6 +233,12 @@ def post_series_upgrade():
resume_unit_helper, CONFIGS)
@hooks.hook('update-status')
def dummy_update_status():
"""Dummy function to silence missing hook log entry"""
pass
def main():
try:
hooks.execute(sys.argv)