Skip to content

Commit d0fdcc8

Browse files
committed
create_vms: move variable initialization to help code checkers
Why pyright considers the try block may fail before those is a mystery, but there's no use for it to even consider that question :) Signed-off-by: Yann Dirson <[email protected]>
1 parent 41e66de commit d0fdcc8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,10 +544,10 @@ def create_vms(request, host, tests_git_revision):
544544
# FIXME should check for extra args
545545
vm_defs.append(vm_def)
546546

547+
vms = []
548+
vdis = []
549+
vbds = []
547550
try:
548-
vms = []
549-
vdis = []
550-
vbds = []
551551
for vm_def in vm_defs:
552552
if "template" in vm_def:
553553
_create_vm(request, vm_def, host, vms, vdis, vbds)

0 commit comments

Comments
 (0)