From: Jeff Layton Date: Fri, 5 Oct 2018 15:16:46 +0000 (-0400) Subject: mgr/orchestrator: clarify error message about kubernetes python module X-Git-Tag: v14.0.1~81^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0bbca1c665b6d1336ee1ab89d685e472adb44a45;p=ceph.git mgr/orchestrator: clarify error message about kubernetes python module When I saw this message, it took a bit of digging for me to understand that it meant the _python_ module and not some missing ceph-mgr module. Let's make that clear. Signed-off-by: Jeff Layton --- diff --git a/src/pybind/mgr/rook/module.py b/src/pybind/mgr/rook/module.py index dafd1191aa8b..6677a10a0148 100644 --- a/src/pybind/mgr/rook/module.py +++ b/src/pybind/mgr/rook/module.py @@ -182,11 +182,11 @@ class RookOrchestrator(MgrModule, orchestrator.Orchestrator): if kubernetes_imported: return True, "" else: - return False, "`kubernetes` module not found" + return False, "`kubernetes` python module not found" def available(self): if not kubernetes_imported: - return False, "`kubernetes` module not found" + return False, "`kubernetes` python module not found" elif not self._in_cluster(): return False, "ceph-mgr not running in Rook cluster"