Skip to content
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

rgw: Parse --subuser better #7279

Merged
merged 1 commit into from Jan 20, 2016
Merged

rgw: Parse --subuser better #7279

merged 1 commit into from Jan 20, 2016

Conversation

zaitcev
Copy link
Contributor

@zaitcev zaitcev commented Jan 19, 2016

Woops. I meant to allow a conflict-less setting of user alongside
the --tenant option. However, since we allow --subuser="user:subuser",
it makes sense to allow --subuser="tenant$user:subuser" too. Even if
we don't we ought to guard against it, least the separator leaks into
the user name and triggers exceedingly strange error messages.

Signed-off-by: Pete Zaitcev zaitcev@redhat.com

This fixes a funny message "ERROR: 'tenant$user != tenant$user'"
in case --subuser='tenant$user' is supplied.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
yehudasa added a commit that referenced this pull request Jan 20, 2016
rgw: Parse --subuser better

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
@yehudasa yehudasa merged commit e5585bc into ceph:master Jan 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants