diff options
author | Gloria Gu <gfgu@suse.com> | 2019-08-30 13:47:39 -0700 |
---|---|---|
committer | Gloria Gu <gfgu@suse.com> | 2019-10-01 16:35:26 +0000 |
commit | be4d2301bb9654a772990d5d6f7bb2b126c7c127 (patch) | |
tree | e82d37a71fe5a13ed1e625af642ed11c8ff53d71 | |
parent | 7427a8ffee9a4ddc5f9976b6138f8b294b776810 (diff) | |
download | horizon-be4d2301bb9654a772990d5d6f7bb2b126c7c127.tar.gz |
Remove the check which causes plugin's quotas update failure
The check causes external plugin's quotas fields unknown
exception because the quotas fields are not part of
QUOTA_FIELDS which only includes the fields for
cinder, neutron and nova.
Meanwhile the exception message throws TypeError.
This commit removes the uncessary check. It also helps
fix the manila-ui's bug #1842119
Change-Id: If093f4ecf1e344792b347c5c338b441b1ab42a04
Closes-bug: #1798048
Closes-bug: #1842119
(cherry picked from commit 44987f02be671fd81b3dcd8d22f9fa1b219488c2)
-rw-r--r-- | openstack_dashboard/usage/quotas.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/openstack_dashboard/usage/quotas.py b/openstack_dashboard/usage/quotas.py index f60cb1399..731ad4ee7 100644 --- a/openstack_dashboard/usage/quotas.py +++ b/openstack_dashboard/usage/quotas.py @@ -238,9 +238,6 @@ def get_tenant_quota_data(request, disabled_quotas=None, tenant_id=None): @profiler.trace def get_disabled_quotas(request, targets=None): if targets: - if set(targets) - QUOTA_FIELDS: - raise ValueError('Unknown quota field names are included: %s' - % set(targets) - QUOTA_FIELDS) candidates = set(targets) else: candidates = QUOTA_FIELDS |