Skip to content

Commit

Permalink
Replace adminCreds with mongoCreds (#1382)
Browse files Browse the repository at this point in the history
Signed-off-by: hmsayem <[email protected]>
  • Loading branch information
hmsayem authored Feb 1, 2022
1 parent caf4c25 commit b45c3ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ func lockConfigServer(configSVRDSN, secondaryHost string) error {
"--host", secondaryHost,
"--quiet",
"--eval", "rs.secondaryOk(); db.BackupControl.find({ '_id' : 'BackupControlDocument' }).readConcern('majority');",
}, adminCreds...)
}, mongoCreds...)

if err := sh.Command(MongoCMD, args...).UnmarshalJSON(&v); err != nil {
return err
Expand Down

0 comments on commit b45c3ad

Please sign in to comment.