Skip to content

Commit f2f7cc6

Browse files
authored
Merge pull request ceph#57106 from phlogistonjohn/jjm-mgr-quiet-notify-types-err
mgr: do not require NOTIFY_TYPES in python modules Reviewed-by: Adam King <[email protected]>
2 parents e5e53ab + 4589c4d commit f2f7cc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mgr/PyModule.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,8 @@ int PyModule::load_notify_types()
515515
{
516516
PyObject *ls = PyObject_GetAttrString(pClass, "NOTIFY_TYPES");
517517
if (ls == nullptr) {
518-
derr << "Module " << get_name() << " has missing NOTIFY_TYPES member" << dendl;
519-
return -EINVAL;
518+
dout(10) << "Module " << get_name() << " has no NOTIFY_TYPES member" << dendl;
519+
return 0;
520520
}
521521
if (!PyObject_TypeCheck(ls, &PyList_Type)) {
522522
// Relatively easy mistake for human to make, e.g. defining COMMANDS

0 commit comments

Comments
 (0)