Skip to content

Commit 47ac6e2

Browse files
committed
hacking: Fix check for missing ignore_missing calls
Change-Id: I54f7bf2026507b357fdf921993c69913e7c32db2 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
1 parent 39842bc commit 47ac6e2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

hacking/checks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ def visit_Call(self, node):
154154
isinstance(node.func.value, ast.Name)
155155
and node.func.value.id.endswith('client')
156156
)
157+
or (
158+
# handle calls like 'self.compute_client.find_server'
159+
isinstance(node.func.value, ast.Attribute)
160+
and node.func.value.attr.endswith('_client')
161+
)
157162
or (
158163
# handle calls like 'self.app.client_manager.image.find_image'
159164
isinstance(node.func.value, ast.Attribute)

0 commit comments

Comments
 (0)