Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammad Fahim Abrar <[email protected]>
  • Loading branch information
Mohammad Fahim Abrar committed May 29, 2023
1 parent 0964e2d commit 6d1ee9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func (opt *mongoOptions) backupMongoDB(targetRef api_v1beta1.TargetRef) (*restic

// We need to create a role and user and backup using that user. This should be removed if the issue is fixed.
// Issue ref: https://jira.mongodb.org/browse/TOOLS-3203?jql=project%20%3D%20TOOLS%20AND%20component%20%3D%20mongodump
err = createStashRoleAndUser(parameters.ConfigServer, string(appBindingSecret.Data[MongoPasswordKey]))
err = createStashRoleAndUser(parameters.ConfigServer, string(authSecret.Data[MongoPasswordKey]))
if err != nil {
klog.Errorf("error while creating user for %v. error: %v", parameters.ConfigServer, err)
return nil, err
Expand Down Expand Up @@ -523,7 +523,7 @@ func (opt *mongoOptions) backupMongoDB(targetRef api_v1beta1.TargetRef) (*restic
// We need to create a role and user and backup using that user for shard.
// These role and user should be removed if the issue is fixed.
// Issue ref: https://jira.mongodb.org/browse/TOOLS-3203?jql=project%20%3D%20TOOLS%20AND%20component%20%3D%20mongodump
err = createStashRoleAndUser(host, string(appBindingSecret.Data[MongoPasswordKey]))
err = createStashRoleAndUser(host, string(authSecret.Data[MongoPasswordKey]))
if err != nil {
klog.Errorf("error while creating user for %v. error: %v", host, err)
return nil, err
Expand Down

0 comments on commit 6d1ee9e

Please sign in to comment.