Fix block-local err bug in service_helper.go

The real error message goes out of scope before we try to log it.
This commit is contained in:
Matt Liggett 2016-06-20 17:31:44 -07:00
parent fae7285b00
commit 3ec2b19611

View File

@ -89,7 +89,8 @@ func (cc *clusterClientCache) syncService(key, clusterName string, clusterCache
if needUpdate {
for i := 0; i < clientRetryCount; i++ {
if err := sc.ensureDnsRecords(clusterName, cachedService); err == nil {
err := sc.ensureDnsRecords(clusterName, cachedService)
if err == nil {
break
}
glog.V(4).Infof("Error ensuring DNS Records for service %s on cluster %s: %v", key, clusterName, err)