Skip to content
Snippets Groups Projects
Unverified Commit bf0c59f5 authored by Daniel Nelson's avatar Daniel Nelson Committed by GitHub
Browse files

Return errors in mongodb SSL/TLS configuration (#4066)

parent c7b3667a
No related branches found
No related tags found
No related merge requests found
...@@ -151,6 +151,9 @@ func (m *MongoDB) gatherServer(server *Server, acc telegraf.Accumulator) error { ...@@ -151,6 +151,9 @@ func (m *MongoDB) gatherServer(server *Server, acc telegraf.Accumulator) error {
} else { } else {
tlsConfig, err = internal.GetTLSConfig( tlsConfig, err = internal.GetTLSConfig(
m.SSLCert, m.SSLKey, m.SSLCA, m.InsecureSkipVerify) m.SSLCert, m.SSLKey, m.SSLCA, m.InsecureSkipVerify)
if err != nil {
return err
}
} }
// If configured to use TLS, add a dial function // If configured to use TLS, add a dial function
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment