Skip to content

Commit f0a4a0e

Browse files
committed
fix: nil pointer error in sql scraper
1 parent 54b798c commit f0a4a0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scrapers/sql/sql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (s SqlScraper) Scrape(ctx *v1.ScrapeContext, configs v1.ConfigScraper) v1.S
3030
connection := config.GetModel()
3131
connection, err := duty.HydrateConnection(ctx, ctx.Kubernetes, db.DefaultDB(), connection, ctx.Namespace)
3232
if err != nil {
33-
results.Errorf(err, "failed to hydrate connection for %s", *connection)
33+
results.Errorf(err, "failed to hydrate connection for %s", config.Connection)
3434
}
3535
db, err := dburl.Open(connection.URL)
3636
if err != nil {

0 commit comments

Comments
 (0)