summaryrefslogtreecommitdiff
path: root/nova/image
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2019-05-29 17:31:49 +0100
committerEric Fried <openstack@fried.cc>2019-06-24 14:24:06 -0500
commit231908a7f42b8329a58e62c8a89204fdeaa16dca (patch)
treefbefb7c9e0657afa845ff33ecba501efd575dc76 /nova/image
parent914ee91a5caedcaba64472762c9f08d7bb644d11 (diff)
downloadnova-231908a7f42b8329a58e62c8a89204fdeaa16dca.tar.gz
hacking: Resolve W503 (line break occurred before a binary operator)
Change-Id: I6381365ff882cf23808e8dabfce41143c5e35192 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'nova/image')
-rw-r--r--nova/image/glance.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/image/glance.py b/nova/image/glance.py
index 39970d0498..4429253f9a 100644
--- a/nova/image/glance.py
+++ b/nova/image/glance.py
@@ -907,8 +907,8 @@ def _extract_attributes_v2(image, include_locations=False):
'disk_format': None, 'container_format': None, 'name': None,
'checksum': None}
for name, value in image.items():
- if (name in omit_attrs
- or name in include_locations_attrs and not include_locations):
+ if (name in omit_attrs or
+ name in include_locations_attrs and not include_locations):
continue
elif name == 'visibility':
output['is_public'] = value == 'public'