mirror of https://github.com/milvus-io/milvus.git
Support service name to connect in pytest (#12186)
Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>pull/12186/merge
parent
0db006f305
commit
640645265e
|
@ -14,16 +14,6 @@ def ip_check(ip):
|
|||
log.error("[IP_CHECK] IP(%s) is not a string." % ip)
|
||||
return False
|
||||
|
||||
_list = ip.split('.')
|
||||
if len(_list) != 4:
|
||||
log.error("[IP_CHECK] IP(%s) is wrong, please check manually." % ip)
|
||||
return False
|
||||
|
||||
for i in _list:
|
||||
if not str(i).isdigit():
|
||||
log.error("[IP_CHECK] IP(%s) is wrong, please check manually." % ip)
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue