def get_lb_client(cluster): """ A convenience wrapper over the function for creating a load-balancer client which may use web admin's SSL material (the client from zato.common can't use it because it would make it dependent on the zato.admin package). """ return _get_lb_client(cluster.lb_host, cluster.lb_agent_port, ssl_ca_certs, ssl_key_file, ssl_cert_file, LB_AGENT_CONNECT_TIMEOUT)
def get_lb_client(cluster): """ A convenience wrapper over the function for creating a load-balancer client which may use web admin's SSL material (the client from zato.common can't use it because it would make it dependent on the zato.admin package). """ return _get_lb_client(cluster.lb_host, cluster.lb_agent_port, ssl_ca_certs, ssl_key_file, ssl_cert_file, LB_AGENT_CONNECT_TIMEOUT)