def get_master_ip(host=None, port=None, password=None):
 server = _connect(host, port, password)
 srv_info = server.info()
 ret = (srv_info.get('master_host', ''), srv_info.get('master_port', ''))
 return dict(list(zip(('master_host', 'master_port'), ret)))

def get_master_ip ( host = None , port = None , password = None ) : server = _connect ( host , port , password ) srv_info = server . info ( ) ret = ( srv_info . get ( 'master_host' , '' ) , srv_info . get ( 'master_port' , '' ) ) return dict ( list ( zip ( ( 'master_host' , 'master_port' ) , ret ) ) )
get host information about slave .