minor fix

This commit is contained in:
Qiu Jian
2019-12-24 20:13:03 +08:00
parent b31bc7fa3d
commit ccaddaf19f
3 changed files with 29 additions and 1 deletions
@@ -219,7 +219,7 @@ func (p *SchedtagChecker) getDynamicSchedtags(resType string, schedDesc *jsonuti
tags := []models.SSchedtag{}
for _, tag := range dynamicTags {
matched, err := conditionparser.Eval(tag.Condition, schedDesc)
matched, err := conditionparser.EvalBool(tag.Condition, schedDesc)
if err != nil {
log.Errorf("Condition parse eval: condition: %q, desc: %s, error: %v", tag.Condition, schedDesc, err)
continue