@@ -19,9 +19,9 @@ import (
1919 "context"
2020 "fmt"
2121 "math"
22+ "os"
2223 "strings"
2324 "time"
24- "os"
2525
2626 "github.com/pkg/errors"
2727 "github.com/prometheus/client_golang/prometheus"
@@ -838,7 +838,7 @@ func retrieveMongoDBBuildInfo(ctx context.Context, client *mongo.Client, l *logr
838838 if err != nil {
839839 if e , ok := err .(mongo.CommandError ); ok {
840840 if e .Code == Unauthorized {
841- errors .Wrap (err ,"unauthorized to run command buildInfo" )
841+ errors .Wrap (err , "unauthorized to run command buildInfo" )
842842 os .Exit (1 )
843843 }
844844 }
@@ -1185,7 +1185,7 @@ func chunksBalancerRunning(ctx context.Context, client *mongo.Client) (prometheu
11851185 if err := res .Decode (& m ); err != nil {
11861186 if e , ok := err .(mongo.CommandError ); ok {
11871187 if e .Code == Unauthorized {
1188- errors .Wrap (err ,"unauthorized to run command balancerStatus" )
1188+ errors .Wrap (err , "unauthorized to run command balancerStatus" )
11891189 os .Exit (1 )
11901190 }
11911191 }
@@ -1216,7 +1216,7 @@ func balancerEnabled(ctx context.Context, client *mongo.Client) (prometheus.Metr
12161216 if err != nil {
12171217 if e , ok := err .(mongo.CommandError ); ok {
12181218 if e .Code == Unauthorized {
1219- errors .Wrap (err ,"unauthorized to run command balancerStatus" )
1219+ errors .Wrap (err , "unauthorized to run command balancerStatus" )
12201220 os .Exit (1 )
12211221 }
12221222 }
0 commit comments