mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-10-31 03:12:31 +00:00 
			
		
		
		
	Collapse 'acknowledge' parameter to boolean, 'False' meaning False
When a client submits non-boolean data for acknowledge, coerce it into boolean in some reasonable way.
This commit is contained in:
		| @@ -693,7 +693,7 @@ class AlertDestination(ConfluentMessage): | ||||
|  | ||||
| class InputAlertDestination(ConfluentMessage): | ||||
|     valid_alert_params = { | ||||
|         'acknowledge': lambda x: x, | ||||
|         'acknowledge': lambda x: False if type(x) in (unicode,str) and x.lower() == 'false' else bool(x), | ||||
|         'ip': lambda x: x, | ||||
|         'retries': lambda x: int(x) | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user