When project quota set unlimited(-1), and user in the
project is limited to a value.Then project quota must
smaller than project usage when checking quotas, which
means the value 'overs' is not None.
In this case, even though the user not over the quota,
but they can not create share
Closes-bug: #1872872
Change-Id: Id9e2bcb5d30d2b81b0723dd296b537ac7d4519f2
(cherry picked from commit 780053968270900a1402fa0db4ae96bd16060ad4)
Reviewed: https:/ /review. opendev. org/722034 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=73837ce05a9 bf07c7dd4e15c98 eee511ff9e1a10
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit 73837ce05a9bf07 c7dd4e15c98eee5 11ff9e1a10
Author: zhangqing <email address hidden>
Date: Tue Mar 17 20:50:49 2020 +0800
fix bug in quota checking
When project quota set unlimited(-1), and user in the
project is limited to a value.Then project quota must
smaller than project usage when checking quotas, which
means the value 'overs' is not None.
In this case, even though the user not over the quota,
but they can not create share
Closes-bug: #1872872
Change-Id: Id9e2bcb5d30d2b 81b0723dd296b53 7ac7d4519f2 a1402fa0db4ae96 bd16060ad4)
(cherry picked from commit 780053968270900