Skip to content

Commit 1ab9fa6

Browse files
committed
improve comment
1 parent cfc6f42 commit 1ab9fa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/psmdb/container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func containerArgs(ctx context.Context, cr *api.PerconaServerMongoDB, replset *a
211211

212212
name, err := replset.CustomReplsetName()
213213
if err == nil {
214-
// Update the replSet argument with the custom name
214+
// given that --auth option is optional, we cannot rely on the fixed hardcoded index.
215215
for i, arg := range args {
216216
if len(arg) >= 9 && arg[:9] == "--replSet" {
217217
args[i] = "--replSet=" + name

0 commit comments

Comments
 (0)