Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Haltmayer <[email protected]>
  • Loading branch information
Filip Haltmayer committed May 22, 2023
1 parent 17b21e3 commit e8d87c4
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 @@ -348,7 +348,8 @@ def with_config(config: Tuple) -> bool:
elif alias in self._alias:
kwargs = dict(self._alias[alias].items())
# If user is passed in, use it, if not, use previous connections user.
user = user if user != "" else kwargs.pop("user")
prev_user = kwargs.pop("user")
user = user if user != "" else prev_user

# No params, env, and cached configs for the alias
else:
Expand Down

0 comments on commit e8d87c4

Please sign in to comment.