mgr: skip past broken modules and load the rest

...instead of stopping at the first python module
that fails to load.

Signed-off-by: John Spray <john.spray@redhat.com>
This commit is contained in:
John Spray 2016-08-08 17:09:12 +01:00
parent 8db0137dc3
commit fc3090fcdd

View File

@ -330,8 +330,7 @@ int PyModules::init()
derr << "Error loading module '" << *module_name << "': "
<< cpp_strerror(r) << dendl;
derr << handle_pyerror() << dendl;
return r;
// Don't drop out here, load the other modules
} else {
// Success!
modules[*module_name] = mod;