summaryrefslogtreecommitdiff
path: root/ironic/common/glance_service
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@protonmail.com>2020-03-30 11:37:02 +0200
committerDmitry Tantsur <dtantsur@protonmail.com>2020-03-31 13:40:00 +0000
commit1faa3397a6ae1c9d82d8f4ba90134148bc022e61 (patch)
tree24de6242cc44bf2b8d108cc7342932d41a4a0669 /ironic/common/glance_service
parenta3d7d73a69f85b396aad30610294d5ea246a0df7 (diff)
downloadironic-1faa3397a6ae1c9d82d8f4ba90134148bc022e61.tar.gz
Fix the remaining hacking issues
Fixes W504 and E117, resulting in some indentation changes. Also fixes code that exceeds the complexity requirement, that is bumped to 20 (mostly to avoid refactoring the agent heartbeat call, resulting in conflicts for the deploy steps work). Change-Id: I8e49f2c039b0ddfca9138f8e148708b7e8b5df7e
Diffstat (limited to 'ironic/common/glance_service')
-rw-r--r--ironic/common/glance_service/service_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ironic/common/glance_service/service_utils.py b/ironic/common/glance_service/service_utils.py
index d7a702285..e9bb78ce2 100644
--- a/ironic/common/glance_service/service_utils.py
+++ b/ironic/common/glance_service/service_utils.py
@@ -115,8 +115,8 @@ def is_image_available(context, image):
if getattr(image, 'visibility', None) == 'public' or context.is_admin:
return True
- return (context.project_id and
- getattr(image, 'owner', None) == context.project_id)
+ return (context.project_id
+ and getattr(image, 'owner', None) == context.project_id)
def is_image_active(image):