]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: do not require NOTIFY_TYPES in python modules 57106/head
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 26 Apr 2024 14:53:33 +0000 (10:53 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Fri, 26 Apr 2024 14:53:33 +0000 (10:53 -0400)
commit4589c4d8ac524206d4fb6349b07c5a4e83f926dc
tree79ade36d7e0a1bf8a7fe4001b62ca5218b2c1889
parent6e630c4161d4bfa69991cdb4fb2b4b9ba02d561d
mgr: do not require NOTIFY_TYPES in python modules

Many python mgr modules lack a NOTIFY_TYPES member apparently without
any downsides beyond an annoying message in the logs.  This includes
commonly used mgr modules like 'volumes' and 'cephadm'.  Stop emitting
an error for missing NOTIFY_TYPES by not assuming all mgr modules in
python should provide it. The return code is also changed to indicate
that this is not an error but the return from this function is never
checked and so it should have no impact. However, if someone started
using the return value in the future this would match the log change.

Fixes: https://tracker.ceph.com/issues/55835
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/mgr/PyModule.cc