ann-search
copied
Fix secure bug
Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
@ -50,6 +50,8 @@ class MilvusClient(PyOperator):
raise ConnectionError('Received invalid connection arguments.')
if any(x is None for x in [token, user, password]):
self._connection_args['secure'] = False
else:
self._connection_args['secure'] = True
connections.connect(**self._connection_args)