A minor change

This commit is contained in:
Anton Beloglazov 2012-10-27 12:01:31 +11:00
parent b1624abb9a
commit de324b2dd6

View File

@ -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)