Fix bug in displaying users when there is an archived user

This commit is contained in:
John Supplee 2019-11-22 17:13:57 +02:00
parent 0860a93e84
commit 8e94402282
3 changed files with 9 additions and 1 deletions

View file

@ -69,6 +69,10 @@ Issues
Changes
-------
### v0.43-quota-0.22-beta
* Fix bug that crashed user list when there is an archived user.
### v0.43-quota-0.21-beta
* Remove extra features from the master branch

View file

@ -198,6 +198,10 @@ def get_mail_users_ex(env, with_archived=False):
"privileges": [],
"status": "inactive",
"mailbox": mbox,
"box_count": '?',
"box_size": '?',
"box_quota": '?',
"percent": '?',
}
users.append(user)

View file

@ -20,7 +20,7 @@ if [ -z "$TAG" ]; then
# want to display in status checks.
if [ "`lsb_release -d | sed 's/.*:\s*//' | sed 's/18\.04\.[0-9]/18.04/' `" == "Ubuntu 18.04 LTS" ]; then
# This machine is running Ubuntu 18.04.
TAG=v0.43-quota-0.21-beta
TAG=v0.43-quota-0.22-beta
elif [ "`lsb_release -d | sed 's/.*:\s*//' | sed 's/14\.04\.[0-9]/14.04/' `" == "Ubuntu 14.04 LTS" ]; then
# This machine is running Ubuntu 14.04.