From 7394375a2e7bc3049ea6d14ac89aa5350c263002 Mon Sep 17 00:00:00 2001 From: Tim Raymond Date: Thu, 11 Feb 2016 14:11:36 -0500 Subject: [PATCH] Return immediately if no enterprise hosts --- services/enterprise/enterprise.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/enterprise/enterprise.go b/services/enterprise/enterprise.go index d44073286..c8f6d5240 100644 --- a/services/enterprise/enterprise.go +++ b/services/enterprise/enterprise.go @@ -37,6 +37,10 @@ func NewEnterprise(c Config, hostname string, shutdown chan struct{}) *Service { } func (s *Service) Open() { + if len(s.hosts) == 0 { + return + } + cl, err := client.New(s.hosts) if err != nil { s.logger.Printf("Unable to contact one or more Enterprise hosts. err: %s", err.Error())