[FIX] bug: update-upstreams is null

This commit is contained in:
GLYASAI 2018-12-01 14:27:07 +08:00
parent 121adc04c1
commit dc88237914

View File

@ -239,7 +239,7 @@ func (osvc *OrService) UpdatePools(pools []*v1.Pool) error {
upstream.Servers = append(upstream.Servers, server)
}
if len(upstream.Servers) == 0 {
break
continue
}
upstreams = append(upstreams, upstream)
}