From: John Spray Date: Mon, 20 Aug 2018 08:24:58 +0000 (+0100) Subject: mgr: replace "Unknown error" string on always_on X-Git-Tag: v14.0.1~393^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a26e6067c7ee00cdc65ba64a0b87d7994a6940aa;p=ceph.git mgr: replace "Unknown error" string on always_on It's always hard to say what went wrong when a module couldn't be imported at all, but let's be a little bit more helpful. Signed-off-by: John Spray --- diff --git a/src/mgr/PyModuleRegistry.cc b/src/mgr/PyModuleRegistry.cc index c09e0eec5188..179785ad4a8d 100644 --- a/src/mgr/PyModuleRegistry.cc +++ b/src/mgr/PyModuleRegistry.cc @@ -378,7 +378,7 @@ void PyModuleRegistry::get_health_checks(health_check_map_t *checks) if (!active_modules->module_exists(name)) { if (failed_modules.find(name) == failed_modules.end() && dependency_modules.find(name) == dependency_modules.end()) { - failed_modules[name] = "Unknown error"; + failed_modules[name] = "Not found or unloadable"; } } }