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
This commit is contained in:
parent
30b7cfb9b8
commit
44987f02be
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user