@@ -19,9 +19,9 @@ import (
19
19
"context"
20
20
"fmt"
21
21
"math"
22
+ "os"
22
23
"strings"
23
24
"time"
24
- "os"
25
25
26
26
"github.com/pkg/errors"
27
27
"github.com/prometheus/client_golang/prometheus"
@@ -838,7 +838,7 @@ func retrieveMongoDBBuildInfo(ctx context.Context, client *mongo.Client, l *logr
838
838
if err != nil {
839
839
if e , ok := err .(mongo.CommandError ); ok {
840
840
if e .Code == Unauthorized {
841
- errors .Wrap (err ,"unauthorized to run command buildInfo" )
841
+ errors .Wrap (err , "unauthorized to run command buildInfo" )
842
842
os .Exit (1 )
843
843
}
844
844
}
@@ -1185,7 +1185,7 @@ func chunksBalancerRunning(ctx context.Context, client *mongo.Client) (prometheu
1185
1185
if err := res .Decode (& m ); err != nil {
1186
1186
if e , ok := err .(mongo.CommandError ); ok {
1187
1187
if e .Code == Unauthorized {
1188
- errors .Wrap (err ,"unauthorized to run command balancerStatus" )
1188
+ errors .Wrap (err , "unauthorized to run command balancerStatus" )
1189
1189
os .Exit (1 )
1190
1190
}
1191
1191
}
@@ -1216,7 +1216,7 @@ func balancerEnabled(ctx context.Context, client *mongo.Client) (prometheus.Metr
1216
1216
if err != nil {
1217
1217
if e , ok := err .(mongo.CommandError ); ok {
1218
1218
if e .Code == Unauthorized {
1219
- errors .Wrap (err ,"unauthorized to run command balancerStatus" )
1219
+ errors .Wrap (err , "unauthorized to run command balancerStatus" )
1220
1220
os .Exit (1 )
1221
1221
}
1222
1222
}
0 commit comments