Fix some pylint indentation warnings
Running with a stricter .pylintrc generates a lot of C0330 warnings (hanging/continued indentation). Fix the ones in neutron/api. Trivialfix Change-Id: I1258b04f64a18036407e1d9de9ddca7472af0d11
This commit is contained in:
parent
ba795c6692
commit
291eabb0b6
|
@ -335,8 +335,8 @@ class L3RpcCallback(object):
|
||||||
|
|
||||||
updated_subnets = []
|
updated_subnets = []
|
||||||
for subnet_id, prefix in subnets.items():
|
for subnet_id, prefix in subnets.items():
|
||||||
updated_subnets.append(self.plugin.update_subnet(
|
updated_subnets.append(
|
||||||
context,
|
self.plugin.update_subnet(context,
|
||||||
subnet_id,
|
subnet_id,
|
||||||
{'subnet': {'cidr': prefix}}))
|
{'subnet': {'cidr': prefix}}))
|
||||||
return updated_subnets
|
return updated_subnets
|
||||||
|
|
|
@ -236,7 +236,8 @@ class ResourcesPushRpcApi(object):
|
||||||
resources_by_type = self._classify_resources_by_type(resource_list)
|
resources_by_type = self._classify_resources_by_type(resource_list)
|
||||||
LOG.debug(
|
LOG.debug(
|
||||||
"Pushing event %s for resources: %s", event_type,
|
"Pushing event %s for resources: %s", event_type,
|
||||||
{t: ["ID=%s,revision_number=%s" % (
|
{t:
|
||||||
|
["ID=%s,revision_number=%s" % (
|
||||||
getattr(obj, 'id', None),
|
getattr(obj, 'id', None),
|
||||||
getattr(obj, 'revision_number', None))
|
getattr(obj, 'revision_number', None))
|
||||||
for obj in resources_by_type[t]]
|
for obj in resources_by_type[t]]
|
||||||
|
|
|
@ -550,7 +550,8 @@ class Controller(object):
|
||||||
# should be removed because of authZ policies
|
# should be removed because of authZ policies
|
||||||
fields_to_strip = self._exclude_attributes_by_policy(
|
fields_to_strip = self._exclude_attributes_by_policy(
|
||||||
request.context, objs[0])
|
request.context, objs[0])
|
||||||
return notify({self._collection: [self._filter_attributes(
|
return notify({self._collection:
|
||||||
|
[self._filter_attributes(
|
||||||
obj, fields_to_strip=fields_to_strip)
|
obj, fields_to_strip=fields_to_strip)
|
||||||
for obj in objs]})
|
for obj in objs]})
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue