// FindServer returns a server by hostname
FindServer returns a server by hostname
// FindServer returns a server by hostname
func (s *ClusterState) FindServer(hostname string) (*Server, error) {
	for _, server := range s.Servers {
		if server.Hostname == hostname {
			return &server, nil
		}
	}
	return nil, trace.NotFound("couldn't find server %q in cluster state: %v", hostname, s)
}
func ( s * ClusterState ) FindServer ( hostname string ) ( * Server , error ) { for _ , server := range s . Servers { if server . Hostname == hostname { return & server , nil } } return nil , trace . NotFound ( " " , hostname , s ) }
FindServer returns a server by hostname
FindServer returns a server by hostname