From 353766cb0cf5b0f8e071fe4fda9fa85a0b582ea7 Mon Sep 17 00:00:00 2001 From: Abu Sayed <82162518+sayedppqq@users.noreply.github.com> Date: Wed, 28 Aug 2024 10:11:47 +0600 Subject: [PATCH] Use equal in args (#2172) Signed-off-by: sayedppqq --- pkg/backup.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/backup.go b/pkg/backup.go index 72f87b355..96020fe84 100644 --- a/pkg/backup.go +++ b/pkg/backup.go @@ -396,7 +396,7 @@ func (opt *mongoOptions) backupMongoDB(targetRef api_v1beta1.TargetRef) (*restic dumpCreds = append(dumpCreds, []interface{}{ fmt.Sprintf("--username=%s", username), fmt.Sprintf("--password=%s", authSecret.Data[MongoPasswordKey]), - "--authenticationDatabase", opt.authenticationDatabase, + fmt.Sprintf("--authenticationDatabase=%s", opt.authenticationDatabase), }...) } else { @@ -413,7 +413,7 @@ func (opt *mongoOptions) backupMongoDB(targetRef api_v1beta1.TargetRef) (*restic dumpCreds = append(dumpCreds, []interface{}{ fmt.Sprintf("--username=%s", username), fmt.Sprintf("--password=%s", authSecret.Data[MongoPasswordKey]), - "--authenticationDatabase", opt.authenticationDatabase, + fmt.Sprintf("--authenticationDatabase=%s", opt.authenticationDatabase), }...) }