From b45c3ad72e379e976596dedf3f3ffcd99a012633 Mon Sep 17 00:00:00 2001 From: Hossain Mahmud Date: Tue, 1 Feb 2022 16:31:37 +0600 Subject: [PATCH] Replace `adminCreds` with `mongoCreds` (#1382) Signed-off-by: hmsayem --- pkg/backup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/backup.go b/pkg/backup.go index 96f94be4d..7764930fd 100644 --- a/pkg/backup.go +++ b/pkg/backup.go @@ -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