From: John Spray Date: Thu, 2 Nov 2017 11:42:56 +0000 (-0400) Subject: qa: fix mgr _load_module helper X-Git-Tag: v13.0.1~314^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F18685%2Fhead;p=ceph.git qa: fix mgr _load_module helper I inadvertently broke this with the latest change to the module ls output. Signed-off-by: John Spray --- diff --git a/qa/tasks/mgr/mgr_test_case.py b/qa/tasks/mgr/mgr_test_case.py index 0734842fa056..ec3f98d28bb4 100644 --- a/qa/tasks/mgr/mgr_test_case.py +++ b/qa/tasks/mgr/mgr_test_case.py @@ -89,7 +89,8 @@ class MgrTestCase(CephTestCase): timeout=20) def _load_module(self, module_name): - loaded = json.loads(self.mgr_cluster.mon_manager.raw_cluster_cmd("mgr", "module", "ls")) + loaded = json.loads(self.mgr_cluster.mon_manager.raw_cluster_cmd( + "mgr", "module", "ls"))['enabled_modules'] if module_name in loaded: # The enable command is idempotent, but our wait for a restart # isn't, so let's return now if it's already loaded