File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
weaviate/collections/cluster Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change
1
+ from httpx import Response
1
2
from weaviate .connect import ConnectionV4
2
3
3
4
@@ -75,12 +76,15 @@ async def nodes(
75
76
If the response is empty.
76
77
"""
77
78
path = "/nodes"
79
+ params = None
78
80
if collection is not None :
79
81
path += "/" + _capitalize_first_letter (collection )
80
82
if output is not None :
81
- path += f"? output= { output } "
83
+ params = { " output" : output }
82
84
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
+ )
84
88
response_typed = _decode_json_response_dict (response , "Nodes status" )
85
89
assert response_typed is not None
86
90
You can’t perform that action at this time.
0 commit comments