2
0
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:
Jarrod Johnson 2014-04-11 11:30:17 -04:00
parent 1ff7283dbb
commit 6aaee681e7

View File

@ -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':