[FIX] blob upload unknown

This commit is contained in:
GLYASAI 2019-01-21 15:59:27 +08:00
parent 40e79c272f
commit d36053c7be

View File

@ -301,6 +301,9 @@ func (gwc *GWController) getRbdPools(edps map[string][]string) ([]*v1.Pool, []*v
if gwc.ocfg.EnableGrMe {
pools := convIntoRbdPools(edps["HUB_ENDPOINTS"], "registry")
if pools != nil && len(pools) > 0 {
for _, p := range pools {
p.UpstreamHashBy = "$remote_addr"
}
hpools = append(hpools, pools...)
} else {
logrus.Debugf("there is no endpoints for %s", "maven.goodrain.me")