Skip to content

Commit

Permalink
[cherry-pick] Update flags: --username, --password to `--username…
Browse files Browse the repository at this point in the history
…=`, `--password=` (#1427)

/cherry-pick

Signed-off-by: Emruz Hossain <[email protected]>

Co-authored-by: Emruz Hossain <[email protected]>
  • Loading branch information
1gtm and Emruz Hossain authored Feb 28, 2022
1 parent 9bb4090 commit f229bc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ func (opt *mongoOptions) backupMongoDB(targetRef api_v1beta1.TargetRef) (*restic
}...)
} else {
adminCreds = []interface{}{
"--username", string(appBindingSecret.Data[MongoUserKey]),
"--password", string(appBindingSecret.Data[MongoPasswordKey]),
fmt.Sprintf("--username=%s", appBindingSecret.Data[MongoUserKey]),
fmt.Sprintf("--password=%s", appBindingSecret.Data[MongoPasswordKey]),
"--authenticationDatabase", opt.authenticationDatabase,
}
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ func (opt *mongoOptions) restoreMongoDB(targetRef api_v1beta1.TargetRef) (*resti

} else {
adminCreds = []interface{}{
"--username", string(appBindingSecret.Data[MongoUserKey]),
"--password", string(appBindingSecret.Data[MongoPasswordKey]),
fmt.Sprintf("--username=%s", appBindingSecret.Data[MongoUserKey]),
fmt.Sprintf("--password=%s", appBindingSecret.Data[MongoPasswordKey]),
"--authenticationDatabase", opt.authenticationDatabase,
}
}
Expand Down

0 comments on commit f229bc1

Please sign in to comment.