Setting up vacation was not working anymore

The underlying function enable as a UpdateVacation is exception a boolean and not a string.
This commit is contained in:
jeremi
2016-01-22 10:25:59 +08:00
parent 3fcde95fe8
commit f9bd5506c7

View File

@@ -4884,9 +4884,9 @@ def doWebClips(users):
def doVacation(users):
subject = message = u''
if sys.argv[4].lower() in true_values:
enable = u'true'
enable = True
elif sys.argv[4].lower() in false_values:
enable = u'false'
enable = False
else:
print u'ERROR: value for "gam <users> vacation" must be true or false, got %s' % sys.argv[4]
sys.exit(2)