From fc3090fcddd854b47a08698b3e57a6f7cfb82d4a Mon Sep 17 00:00:00 2001 From: John Spray Date: Mon, 8 Aug 2016 17:09:12 +0100 Subject: [PATCH] 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 --- src/mgr/PyModules.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mgr/PyModules.cc b/src/mgr/PyModules.cc index 8c1fe867b02b..4fba53c52c6e 100644 --- a/src/mgr/PyModules.cc +++ b/src/mgr/PyModules.cc @@ -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; -- 2.47.3