@@ -17,7 +17,7 @@ def __init__(self, cmd, response):
1717 'Unexpected response {} for command {}' .format (response , cmd ))
1818
1919
20- def get_cluster_info (host , port , ignore_cluster_errors = False , timeout = 3 ):
20+ def get_cluster_info (host , port , ignore_cluster_errors = False ):
2121 """
2222 return dict with info about nodes in cluster and current version
2323 {
@@ -30,7 +30,7 @@ def get_cluster_info(host, port, ignore_cluster_errors=False, timeout=3):
3030 """
3131 client = Telnet (host , int (port ))
3232 client .write (b'version\n ' )
33- res = client .read_until (b'\r \n ' , timeout ).strip ()
33+ res = client .read_until (b'\r \n ' ).strip ()
3434 version_list = res .split (b' ' )
3535 if len (version_list ) not in [2 , 3 ] or version_list [0 ] != b'VERSION' :
3636 raise WrongProtocolData ('version' , res )
@@ -43,7 +43,7 @@ def get_cluster_info(host, port, ignore_cluster_errors=False, timeout=3):
4343 regex_index , match_object , res = client .expect ([
4444 re .compile (b'\n \r \n END\r \n ' ),
4545 re .compile (b'ERROR\r \n ' )
46- ], timeout )
46+ ])
4747 client .close ()
4848
4949 if res == b'ERROR\r \n ' and ignore_cluster_errors :
0 commit comments