MCPcopy Create free account
hub / github.com/ceph/ceph / register_options

Method register_options

src/mgr/PyModule.cc:504–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502}
503
504int 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
520int PyModule::load_notify_types()
521{

Callers

nothing calls this directly

Calls 3

handle_pyerrorFunction · 0.85
get_nameFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected