Skip to content

Commit 1b2e409

Browse files
authored
Replace adminCreds with mongoCreds (#1381)
Signed-off-by: hmsayem <hmsayem@appscode.com>
1 parent be037ea commit 1b2e409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/backup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ func lockConfigServer(configSVRDSN, secondaryHost string) error {
659659
"--host", secondaryHost,
660660
"--quiet",
661661
"--eval", "rs.secondaryOk(); db.BackupControl.find({ '_id' : 'BackupControlDocument' }).readConcern('majority');",
662-
}, adminCreds...)
662+
}, mongoCreds...)
663663

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

0 commit comments

Comments
 (0)