Comment 2 for bug 1741493

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/531469
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=6baf8c9fa011f02e2e6038c6d62fb4d5201e6006
Submitter: Zuul
Branch: master

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