提交 c3f11fdb 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

close task #7508

上级 860494a3
......@@ -185,10 +185,10 @@ func getRootRangeOrInstant(inst model.DefField) (parentRanges model.ResRanges, p
}
err1 := yaml.Unmarshal(yamlContent, &parentRanges)
if err1 != nil || parentInsts.Instances == nil || len(parentInsts.Instances) == 0 { // instances
if err1 != nil || parentRanges.Ranges == nil || len(parentRanges.Ranges) == 0 { // instances
err2 := yaml.Unmarshal(yamlContent, &parentInsts)
if err2 != nil || parentRanges.Ranges == nil || len(parentRanges.Ranges) == 0 { // ranges
if err2 != nil || parentInsts.Instances == nil || len(parentInsts.Instances) == 0 { // ranges
logUtils.Screen(i118Utils.I118Prt.Sprintf("fail_to_parse_file", resFile))
return
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册