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:
parent
c891cff926
commit
e7c6dfab2b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user