-
Notifications
You must be signed in to change notification settings - Fork 46
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
create_user throws RGWAdminException instead of UserExists #66
Comments
Hi Pavel, I think this is reasonable. The |
vergeev
pushed a commit
to vergeev/rgwadmin
that referenced
this issue
Oct 11, 2023
Here's the PR: #67. Please let me know if you want me to add anything. |
dyarnell
added a commit
that referenced
this issue
Nov 1, 2023
fix: add user already exists exception #66
This was released as part of https://github.com/UMIACS/rgwadmin/releases/tag/2.4.4 and is available on PyPI now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
Expected result: the last line throws
rgwadmin.exceptions.UserExists
.Actual result: the last line throws
rgwadmin.exceptions.RGWAdminException
withcode="UserAlreadyExists"
.Why I think this is happening: the docs say the error response is
UserExists
, but the rgw code actually producesUserAlreadyExists
.Solution I propose:
UserAlreadyExists
exception, replace with itUserExists
here:rgwadmin/rgwadmin/rgw.py
Line 131 in 4f90b6a
UserExists
an alias ofUserAlreadyExists
in order to maintain backwards compatibility.Can I go ahead and open a pull request with a fix?
The text was updated successfully, but these errors were encountered: