2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 11:30:23 +00:00

Fix list by invalid type

Rather than list everything, list nothing
when asked to list an invalid type.
This commit is contained in:
Jarrod Johnson 2017-10-06 14:02:49 -04:00
parent c891cff926
commit e7c6dfab2b

View File

@ -329,7 +329,7 @@ def _parameterize_path(pathcomponents):
if key not in validselectors:
raise exc.NotFoundException('{0} is not valid here'.format(key))
if key == 'by-type':
keyparams[key] = servicebyname.get(val, None)
keyparams[key] = servicebyname.get(val, '!!!!invalid-type')
else:
keyparams[key] = val
validselectors.discard(key)