Merge "Remove the check which causes plugin's quotas update failure"

This commit is contained in:
Zuul
2019-10-01 06:57:27 +00:00
committed by Gerrit Code Review

View File

@@ -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