Skip to content

Commit 432d824

Browse files
author
lamai93
committed
Fixed nil pointer dereference.
1 parent 0e2689d commit 432d824

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/deployment/bootstrap.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
package deployment
2424

2525
import (
26+
"context"
2627
"crypto/rand"
2728
"encoding/hex"
2829
"fmt"
@@ -131,7 +132,8 @@ func (d *Deployment) runBootstrap() error {
131132

132133
// execute the bootstrap code
133134
// make sure that the bootstrap code is idempotent
134-
client, err := d.clientCache.GetDatabase(nil)
135+
ctx := context.Background()
136+
client, err := d.clientCache.GetDatabase(ctx)
135137
if err != nil {
136138
return maskAny(err)
137139
}

0 commit comments

Comments
 (0)