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=` (#1428)

/cherry-pick

Signed-off-by: Emruz Hossain <emruz@appscode.com>

Co-authored-by: Emruz Hossain <emruz@appscode.com>
  • Loading branch information
1gtm and Emruz Hossain committed Feb 28, 2022
1 parent 8014a99 commit 8caec9f
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
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
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 8caec9f

Please sign in to comment.