Merge pull request #10093 from ioito/hotfix/qx-metadata-sync

fix(region): avoid update tags task loop
This commit is contained in:
Zexi Li
2021-02-01 20:34:32 +08:00
committed by GitHub
+1 -1
View File
@@ -607,7 +607,7 @@ func (manager *SMetadataManager) GetAll(obj IModel, keys []string, keyPrefix str
ret := make(map[string]string)
for _, rec := range records {
if len(rec.Value) > 0 || strings.HasPrefix(rec.Key, USER_TAG_PREFIX) || strings.HasPrefix(rec.Key, CLOUD_TAG_PREFIX) {
ret[rec.Key] = rec.Value
ret[strings.ToLower(rec.Key)] = rec.Value
}
}
return ret, nil