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 GitHub
parent 97f9c2f667
commit bf5e3774cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,