Merge pull request #10552 from zhaoxiangchun/bugfix/zxc-monitor-resouceName

fix(monitor):修复监控总览图标钻取后返回数据异常的问题
This commit is contained in:
Zexi Li
2021-04-01 20:50:58 +08:00
committed by GitHub
+3
View File
@@ -663,6 +663,9 @@ func (c *QueryCondition) getFilterResources(start int, end int,
continue
}
relationKey := relationMap[tag.Key]
if len(relationKey) == 0 {
continue
}
filterObj := make([]jsonutils.JSONObject, 0)
for _, res := range tmp {
val, _ := res.GetString(relationKey)