Skip to content

Commit

Permalink
Fix api key (#1757)
Browse files Browse the repository at this point in the history
Signed-off-by: bigsheeper <[email protected]>
  • Loading branch information
bigsheeper committed Oct 25, 2023
1 parent c06496e commit 693217b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pymilvus/orm/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ def with_config(config: Tuple) -> bool:
uri = kwargs.get("uri")
if uri is not None:
server_type = get_server_type(uri)
if server_type == ZILLIZ and ":" not in token:
parsed_uri = parse.urlparse(uri)
if server_type == ZILLIZ and parsed_uri.port is None:
kwargs["uri"] = uri + ":" + str(VIRTUAL_PORT)

config = (
Expand Down

0 comments on commit 693217b

Please sign in to comment.