Browse Source
Fix secure bug
Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
1 changed files with
3 additions and
1 deletions
-
milvus_client.py
|
@ -34,7 +34,9 @@ class MilvusClient(PyOperator): |
|
|
raise ConnectionError('Received invalid connection arguments.') |
|
|
raise ConnectionError('Received invalid connection arguments.') |
|
|
|
|
|
|
|
|
if any(x is None for x in [token, user, password]): |
|
|
if any(x is None for x in [token, user, password]): |
|
|
self._connection_args['secure'] = True |
|
|
|
|
|
|
|
|
self._connection_args['secure'] = False |
|
|
|
|
|
else: |
|
|
|
|
|
self._connection_args['secure'] = False |
|
|
|
|
|
|
|
|
connections.connect(**self._connection_args) |
|
|
connections.connect(**self._connection_args) |
|
|
|
|
|
|
|
|