mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Restore previous behavior where spaces between label terms are acceptable in Promparse
Signed-off-by: Owen Williams <owen.williams@grafana.com>
This commit is contained in:
parent
58eb877f96
commit
9ec4026ed3
|
@ -446,11 +446,8 @@ func (p *PromParser) parseLVals() error {
|
||||||
// Free trailing commas are allowed. NOTE: this allows spaces between label
|
// Free trailing commas are allowed. NOTE: this allows spaces between label
|
||||||
// names, unlike in OpenMetrics. It is not clear if this is intended or an
|
// names, unlike in OpenMetrics. It is not clear if this is intended or an
|
||||||
// accidental bug.
|
// accidental bug.
|
||||||
t = p.nextToken()
|
if t = p.nextToken(); t == tComma {
|
||||||
if t == tComma {
|
|
||||||
t = p.nextToken()
|
t = p.nextToken()
|
||||||
} else if t != tBraceClose {
|
|
||||||
return p.parseError("expected comma or brace close", t)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue