Fix some pylint indentation warnings

Running with a stricter .pylintrc generates a lot of
C0330 warnings (hanging/continued indentation). Fix
some of them, about 10%.

Feel free to reject if we think it will cause too much
trouble with cherry-picks, else I'll slowly work my way
through the rest of the tree.

Trivialfix

Change-Id: I3d484d11e273cb8ee617f9445a069887e7b2b89f
This commit is contained in:
Brian Haley 2022-07-01 17:41:59 -04:00
parent ae87995a08
commit 58b1df699d
25 changed files with 71 additions and 71 deletions

View File

@ -145,8 +145,7 @@ def get_fip_per_network_without_qos_policies(network_id):
query = query.filter(and_(
~exists().where(qos_models.QosFIPPolicyBinding.fip_id ==
l3_models.FloatingIP.id),
l3_models.FloatingIP.floating_network_id == network_id)
)
l3_models.FloatingIP.floating_network_id == network_id))
return query.count()

View File

@ -86,7 +86,8 @@ class QuotaSetsController(wsgi.Controller):
context = request.context
if id != context.project_id:
validate_policy(context, "get_quota")
return {self._resource_name: self._driver.get_default_quotas(
return {self._resource_name:
self._driver.get_default_quotas(
context=context,
resources=resource_registry.get_all_resources(),
project_id=id)}