app/vmctl: fix empty/skipped labels after db label (#2536)

Do not assume the db label to be the last one and also
make sure we are not skipping it and everything afterwards.
Breaking the loop would cause following labels to be empty.
This commit is contained in:
Marc Hörsken 2022-05-05 12:35:08 +02:00 committed by Aliaksandr Valialkin
parent 2ce1d09135
commit 68ca7e3e56
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -120,7 +120,6 @@ func (ip *influxProcessor) do(s *influx.Series) error {
for i, lp := range s.LabelPairs {
if lp.Name == dbLabel {
containsDBLabel = true
break
}
labels[i] = vm.LabelPair{
Name: lp.Name,