Merge "Fix some pylint indentation warnings"
This commit is contained in:
commit
a358bb802b
neutron/api
@ -335,8 +335,8 @@ class L3RpcCallback(object):
|
||||
|
||||
updated_subnets = []
|
||||
for subnet_id, prefix in subnets.items():
|
||||
updated_subnets.append(self.plugin.update_subnet(
|
||||
context,
|
||||
updated_subnets.append(
|
||||
self.plugin.update_subnet(context,
|
||||
subnet_id,
|
||||
{'subnet': {'cidr': prefix}}))
|
||||
return updated_subnets
|
||||
|
@ -236,7 +236,8 @@ class ResourcesPushRpcApi(object):
|
||||
resources_by_type = self._classify_resources_by_type(resource_list)
|
||||
LOG.debug(
|
||||
"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, 'revision_number', None))
|
||||
for obj in resources_by_type[t]]
|
||||
|
@ -550,7 +550,8 @@ class Controller(object):
|
||||
# should be removed because of authZ policies
|
||||
fields_to_strip = self._exclude_attributes_by_policy(
|
||||
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)
|
||||
for obj in objs]})
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user