commit 6baf8c9fa011f02e2e6038c6d62fb4d5201e6006
Author: Akihiro Motoki <email address hidden>
Date: Sat Jan 6 03:50:36 2018 +0900
Handle float('inf') in tenant_quota_usages properly
tenant_absolute_limits API wrapper converts -1 (unlimited)
to float('inf'), but tenant_quota_usages() cannot handle this
properly. This is a regression during the quota refactoring work.
This commit changes QuotaUsage.add_quota() to accept float('inf')
as one of unlimited quota value.
Closes-Bug: #1741493
Part of blueprint make-quotas-great-again
Change-Id: Ic6ed00761381d52ee04a15a43ee4fe2a30b9a106
Reviewed: https:/ /review. openstack. org/531469 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=6baf8c9fa01 1f02e2e6038c6d6 2fb4d5201e6006
Committed: https:/
Submitter: Zuul
Branch: master
commit 6baf8c9fa011f02 e2e6038c6d62fb4 d5201e6006
Author: Akihiro Motoki <email address hidden>
Date: Sat Jan 6 03:50:36 2018 +0900
Handle float('inf') in tenant_quota_usages properly
tenant_ absolute_ limits API wrapper converts -1 (unlimited) quota_usages( ) cannot handle this add_quota( ) to accept float('inf')
to float('inf'), but tenant_
properly. This is a regression during the quota refactoring work.
This commit changes QuotaUsage.
as one of unlimited quota value.
Closes-Bug: #1741493 great-again 2ee04a15a43ee4f e2a30b9a106
Part of blueprint make-quotas-
Change-Id: Ic6ed00761381d5