A minor change
This commit is contained in:
parent
b1624abb9a
commit
de324b2dd6
@ -139,8 +139,8 @@ def validate_params(user, password, params):
|
||||
raise_error(403)
|
||||
return False
|
||||
if 'reason' not in params or \
|
||||
'host' not in params or \
|
||||
'time' not in params or \
|
||||
'host' not in params or \
|
||||
params['reason'] not in [0, 1] or \
|
||||
params['reason'] == 1 and 'vm_uuids' not in params:
|
||||
raise_error(400)
|
||||
|
Loading…
x
Reference in New Issue
Block a user