remove a wrong warning when pulling list content from CAPI (#1789)
This commit is contained in:
parent
9b3be5c2e8
commit
3ba67bad3d
|
@ -592,9 +592,9 @@ func makeAddAndDeleteCounters() (map[string]map[string]int, map[string]map[strin
|
||||||
func updateCounterForDecision(counter map[string]map[string]int, decision *models.Decision, totalDecisions int) {
|
func updateCounterForDecision(counter map[string]map[string]int, decision *models.Decision, totalDecisions int) {
|
||||||
if *decision.Origin == SCOPE_CAPI {
|
if *decision.Origin == SCOPE_CAPI {
|
||||||
counter[*decision.Origin]["all"] += totalDecisions
|
counter[*decision.Origin]["all"] += totalDecisions
|
||||||
return
|
|
||||||
} else if *decision.Origin == SCOPE_LISTS {
|
} else if *decision.Origin == SCOPE_LISTS {
|
||||||
counter[*decision.Origin][*decision.Scenario] += totalDecisions
|
counter[*decision.Origin][*decision.Scenario] += totalDecisions
|
||||||
|
} else {
|
||||||
|
log.Warningf("Unknown origin %s", *decision.Origin)
|
||||||
}
|
}
|
||||||
log.Warningf("Unknown origin %s", *decision.Origin)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue