mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-10-30 19:02:29 +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:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user