| 502 | } |
| 503 | |
| 504 | int PyModule::register_options(PyObject *cls) |
| 505 | { |
| 506 | PyObject *pRegCmd = PyObject_CallMethod( |
| 507 | cls, |
| 508 | const_cast<char*>("_register_options"), const_cast<char*>("(s)"), |
| 509 | module_name.c_str()); |
| 510 | if (pRegCmd != nullptr) { |
| 511 | Py_DECREF(pRegCmd); |
| 512 | } else { |
| 513 | derr << "Exception calling _register_options on " << get_name() |
| 514 | << dendl; |
| 515 | derr << handle_pyerror(true, module_name, "PyModule::register_options") << dendl; |
| 516 | } |
| 517 | return 0; |
| 518 | } |
| 519 | |
| 520 | int PyModule::load_notify_types() |
| 521 | { |
nothing calls this directly
no test coverage detected