mirror of
https://github.com/ceph/ceph
synced 2025-02-18 00:17:37 +00:00
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:
parent
737877fb38
commit
4fb3025682
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user