summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGloria Gu <gfgu@suse.com>2019-08-30 13:47:39 -0700
committerKeith Berger <keith.berger@suse.com>2019-10-10 17:01:18 +0000
commit93c4ded713c23832237f2c30974e0566574b8134 (patch)
tree4909b8d7ce3132b85ec7dd934b693ad299a900cb
parent7ad3cf215ff60c74f93557225f52f44fc09d404a (diff)
downloadhorizon-93c4ded713c23832237f2c30974e0566574b8134.tar.gz
Remove the check which causes plugin's quotas update failure14.0.4
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) (cherry picked from commit be4d2301bb9654a772990d5d6f7bb2b126c7c127)
-rw-r--r--openstack_dashboard/usage/quotas.py3
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