-
Notifications
You must be signed in to change notification settings - Fork 997
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: config acl #4522
fix: config acl #4522
Conversation
Signed-off-by: jiefenghuang <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4522 +/- ##
===========================================
- Coverage 55.69% 35.67% -20.02%
===========================================
Files 157 122 -35
Lines 42593 33428 -9165
===========================================
- Hits 23722 11927 -11795
- Misses 16234 20287 +4053
+ Partials 2637 1214 -1423 ☔ View full report in Codecov by Sentry. |
cmd/config.go
Outdated
format.EnableACL = true | ||
format.MinClientVersion = "1.2.0-A" | ||
} else { | ||
fmt.Println("cannot disable acl") |
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.
better return an error.
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.
cmd/config.go
Outdated
if enableACL := ctx.Bool(flag); enableACL != format.EnableACL { | ||
if enableACL { | ||
msg.WriteString(fmt.Sprintf("%s: %v -> %v\n", flag, format.EnableACL, true)) | ||
msg.WriteString(fmt.Sprintf("%s: %s -> %v\n", "min-client-version", format.MinClientVersion, "1.2.0-A")) |
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.
msg.WriteString(fmt.Sprintf("%s: %s -> %v\n", "min-client-version", format.MinClientVersion, "1.2.0-A")) | |
msg.WriteString(fmt.Sprintf("%s: %s -> %s\n", "min-client-version", format.MinClientVersion, "1.2.0-A")) |
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.
done
Signed-off-by: jiefenghuang <[email protected]>
Signed-off-by: jiefenghuang <[email protected]>
No description provided.