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:
parent
ae87995a08
commit
58b1df699d
@ -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()
|
||||
|
||||
|
||||
|
@ -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)}
|
||||
|
Loading…
Reference in New Issue
Block a user