Skip to content

Commit 4dcca46

Browse files
authored
Merge pull request #198 from flanksource/fix-sql-nil
fix: nil pointer error in sql scraper
2 parents 54b798c + f0a4a0e commit 4dcca46

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)