qa: fix mgr _load_module helper

I inadvertently broke this with the latest change
to the module ls output.

Signed-off-by: John Spray <john.spray@redhat.com>
This commit is contained in:
John Spray 2017-11-02 07:42:56 -04:00
parent 737877fb38
commit 4fb3025682

View File

@ -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