mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 19:10:10 +00:00
Have a user url without a valid user return a more useful message
This commit is contained in:
parent
1ff7283dbb
commit
6aaee681e7
@ -344,6 +344,8 @@ def handle_path(path, operation, configmanager, inputdata=None):
|
||||
pathcomponents, operation, inputdata)
|
||||
create_user(inputdata.attribs, configmanager)
|
||||
return iterate_collections(configmanager.list_users(), forcecollection=False)
|
||||
if user not in configmanager.list_users():
|
||||
raise exc.NotFoundException("Invalid user %s" % user)
|
||||
if operation == 'retrieve':
|
||||
return show_user(user, configmanager)
|
||||
elif operation == 'delete':
|
||||
|
Loading…
Reference in New Issue
Block a user