File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -357,8 +357,8 @@ func (opt *mongoOptions) backupMongoDB(targetRef api_v1beta1.TargetRef) (*restic
357
357
358
358
} else {
359
359
userAuth := []interface {}{
360
- "--username" , string ( appBindingSecret .Data [MongoUserKey ]),
361
- "--password" , string ( appBindingSecret .Data [MongoPasswordKey ]),
360
+ fmt . Sprintf ( "--username=%s " , appBindingSecret .Data [MongoUserKey ]),
361
+ fmt . Sprintf ( "--password=%s " , appBindingSecret .Data [MongoPasswordKey ]),
362
362
"--authenticationDatabase" , opt .authenticationDatabase ,
363
363
}
364
364
mongoCreds = append (mongoCreds , userAuth ... )
Original file line number Diff line number Diff line change @@ -288,8 +288,8 @@ func (opt *mongoOptions) restoreMongoDB(targetRef api_v1beta1.TargetRef) (*resti
288
288
289
289
} else {
290
290
userAuth := []interface {}{
291
- "--username" , string ( appBindingSecret .Data [MongoUserKey ]),
292
- "--password" , string ( appBindingSecret .Data [MongoPasswordKey ]),
291
+ fmt . Sprintf ( "--username=%s " , appBindingSecret .Data [MongoUserKey ]),
292
+ fmt . Sprintf ( "--password=%s " , appBindingSecret .Data [MongoPasswordKey ]),
293
293
"--authenticationDatabase" , opt .authenticationDatabase ,
294
294
}
295
295
mongoCreds = append (mongoCreds , userAuth ... )
You can’t perform that action at this time.
0 commit comments