mirror of
https://github.com/grafana/grafana.git
synced 2025-01-16 11:42:35 -06:00
use unique datasource id when registering mysql tls config
This commit is contained in:
parent
f157c19e16
commit
1bc2a0af70
@ -39,8 +39,9 @@ func newMysqlQueryEndpoint(datasource *models.DataSource) (tsdb.TsdbQueryEndpoin
|
||||
}
|
||||
|
||||
if tlsConfig.RootCAs != nil || len(tlsConfig.Certificates) > 0 {
|
||||
mysql.RegisterTLSConfig(datasource.Name, tlsConfig)
|
||||
cnnstr += "&tls=" + datasource.Name
|
||||
tlsConfigString := fmt.Sprintf("ds%d", datasource.Id)
|
||||
mysql.RegisterTLSConfig(tlsConfigString, tlsConfig)
|
||||
cnnstr += "&tls=" + tlsConfigString
|
||||
}
|
||||
|
||||
logger.Debug("getEngine", "connection", cnnstr)
|
||||
|
Loading…
Reference in New Issue
Block a user