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 @@ -348,8 +348,8 @@ func (opt *mongoOptions) backupMongoDB(targetRef api_v1beta1.TargetRef) (*restic
348
348
}... )
349
349
} else {
350
350
adminCreds = []interface {}{
351
- "--username" , string ( appBindingSecret .Data [MongoUserKey ]),
352
- "--password" , string ( appBindingSecret .Data [MongoPasswordKey ]),
351
+ fmt . Sprintf ( "--username=%s " , appBindingSecret .Data [MongoUserKey ]),
352
+ fmt . Sprintf ( "--password=%s " , appBindingSecret .Data [MongoPasswordKey ]),
353
353
"--authenticationDatabase" , opt .authenticationDatabase ,
354
354
}
355
355
}
Original file line number Diff line number Diff line change @@ -281,8 +281,8 @@ func (opt *mongoOptions) restoreMongoDB(targetRef api_v1beta1.TargetRef) (*resti
281
281
282
282
} else {
283
283
adminCreds = []interface {}{
284
- "--username" , string ( appBindingSecret .Data [MongoUserKey ]),
285
- "--password" , string ( appBindingSecret .Data [MongoPasswordKey ]),
284
+ fmt . Sprintf ( "--username=%s " , appBindingSecret .Data [MongoUserKey ]),
285
+ fmt . Sprintf ( "--password=%s " , appBindingSecret .Data [MongoPasswordKey ]),
286
286
"--authenticationDatabase" , opt .authenticationDatabase ,
287
287
}
288
288
}
You can’t perform that action at this time.
0 commit comments