From 18ac7a93cc96ce3aefc938cf0c31e0f4af018cde Mon Sep 17 00:00:00 2001 From: Alex Kavanagh Date: Wed, 24 Jul 2019 11:31:05 +0100 Subject: [PATCH] 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: I6a73943af9609810f1e40789c8d351278843dece Closes-bug: #1837639 --- hooks/cinder_hooks.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hooks/cinder_hooks.py b/hooks/cinder_hooks.py index eb479be..c7c2fd2 100755 --- a/hooks/cinder_hooks.py +++ b/hooks/cinder_hooks.py @@ -262,6 +262,12 @@ def post_series_upgrade(): clear_unit_upgrading() +@hooks.hook('update-status') +def dummy_update_status(): + """Dummy function to silence missing hook log entry""" + pass + + if __name__ == '__main__': try: hooks.execute(sys.argv)