diff --git a/lib/live_cluster/client/node.py b/lib/live_cluster/client/node.py index 509f97bc..6df45f76 100644 --- a/lib/live_cluster/client/node.py +++ b/lib/live_cluster/client/node.py @@ -1549,7 +1549,7 @@ async def info_set_config_namespace( self, param, value, namespace, set_=None, subcontext=None ): new_param = param - if subcontext and subcontext != "storage-engine": + if subcontext and subcontext not in {"storage-engine", "index-type"}: delimiter = "." if subcontext == "geo2dsphere-within": diff --git a/test/unit/live_cluster/client/test_node.py b/test/unit/live_cluster/client/test_node.py index 03b888ff..a36280a6 100644 --- a/test/unit/live_cluster/client/test_node.py +++ b/test/unit/live_cluster/client/test_node.py @@ -1278,11 +1278,11 @@ async def test_info_set_config_namespace_success(self): self.assertEqual(actual, ASINFO_RESPONSE_OK) actual = await self.node.info_set_config_namespace( - "foo", "bar", "buff", subcontext="index-type" + "mounts-size-limit", "50", "buff", subcontext="index-type" ) self.info_mock.assert_called_with( - "set-config:context=namespace;id=buff;index-type.foo=bar", self.ip + "set-config:context=namespace;id=buff;mounts-size-limit=50", self.ip ) self.assertEqual(actual, ASINFO_RESPONSE_OK)