]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: replace "Unknown error" string on always_on 23645/head
authorJohn Spray <john.spray@redhat.com>
Mon, 20 Aug 2018 08:24:58 +0000 (09:24 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 20 Aug 2018 08:24:58 +0000 (09:24 +0100)
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 <john.spray@redhat.com>
src/mgr/PyModuleRegistry.cc

index c09e0eec5188e8c731a6fef2f057be55d00cff69..179785ad4a8d4c60fc5f49cd7ca659614b055af9 100644 (file)
@@ -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";
         }
       }
     }