From 8999d19875190fcb2c98ca8929f3cb590833ad88 Mon Sep 17 00:00:00 2001 From: sayedppqq Date: Wed, 28 Aug 2024 09:55:23 +0600 Subject: [PATCH] use equal in args Signed-off-by: sayedppqq --- pkg/backup.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/backup.go b/pkg/backup.go index 8431c156c..463006c6f 100644 --- a/pkg/backup.go +++ b/pkg/backup.go @@ -367,7 +367,6 @@ func (opt *mongoOptions) backupMongoDB(targetRef api_v1beta1.TargetRef) (*restic if !ok { crt, ok := tlsSecret.Data[core.TLSCertKey] if !ok { - fmt.Println("here.........................") return nil, errors.Wrap(err, "unable to retrieve tls.crt from secret.") } key, ok := tlsSecret.Data[core.TLSPrivateKeyKey] @@ -397,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 { @@ -414,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), }...) }