mirror of
https://github.com/grafana/grafana.git
synced 2025-01-10 08:03:58 -06:00
Loki: Fix setting of tenant ID (#86433)
This commit is contained in:
parent
c32953e52c
commit
0b2e748bd8
@ -367,7 +367,7 @@ func setXScopeOrgIDHeader(req *http.Request, ctx context.Context) *http.Request
|
||||
if len(tenantids) == 0 {
|
||||
// We assume we are not using multi-tenant mode, which is fine
|
||||
logger.Debug("Tenant ID not present. Header not set")
|
||||
} else if len(tenantids[0]) > 1 {
|
||||
} else if len(tenantids) > 1 {
|
||||
// Loki supports multiple tenant IDs, but we should receive them from different contexts
|
||||
logger.Error(strconv.Itoa(len(tenantids)) + " tenant IDs found. Header not set")
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user