-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix accounts backend regression from #2590 #2688
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
accounts/pkg/service/v0/service.go
Outdated
if err != nil { | ||
logger.Fatal().Err(err).Msg("cs3 storage was configured but failed to start") | ||
func createMetadataStorage(cfg *config.Config, logger log.Logger) (storage.Repo, error) { | ||
switch strings.ToLower(cfg.Repo.Backend) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backend was set from a lowercase string anyway, so the additional strings.ToLower
should not be needed, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's ensured in the command now ;-) That's the easiest and safest way to do it. Thanks for the feedback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏻
a89a2fd
to
338701e
Compare
338701e
to
f45254b
Compare
Kudos, SonarCloud Quality Gate passed! |
Description
Fix accounts backend regression from #2590. On update from oCIS 1.13.0 to current 1.14.0-rc1 one looses the non demo accounts because the indexer is used the disk in the current oCIS