Skip to content

Commit 355cba0

Browse files
committed
Better solution. Explicitly add params
1 parent 7378f02 commit 355cba0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

weaviate/collections/cluster/cluster.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from httpx import Response
12
from weaviate.connect import ConnectionV4
23

34

@@ -75,12 +76,15 @@ async def nodes(
7576
If the response is empty.
7677
"""
7778
path = "/nodes"
79+
params = None
7880
if collection is not None:
7981
path += "/" + _capitalize_first_letter(collection)
8082
if output is not None:
81-
path += f"?output={output}"
83+
params = {"output": output}
8284

83-
response = await self._connection.get(path=path, error_msg="Get nodes status failed")
85+
response: Response = await self._connection.get(
86+
path=path, params=params, error_msg="Get nodes status failed"
87+
)
8488
response_typed = _decode_json_response_dict(response, "Nodes status")
8589
assert response_typed is not None
8690

0 commit comments

Comments
 (0)