Skip to content

Commit f44793f

Browse files
committed
net: Widen vm parameter type in VMI condition-wait helpers
wait_for_vmi_condition_status and wait_for_no_vmi_condition only use vm.vmi which exists on both BaseVirtualMachine and VirtualMachineForTests. Widen the type to VirtualMachine so any subclass can be passed without a type error. Signed-off-by: Asia Khromov <akhromov@redhat.com> Assisted-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 23b2b71 commit f44793f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libs/net/vmspec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def wait_for_ifaces_status(
206206

207207

208208
def wait_for_vmi_condition_status(
209-
vm: BaseVirtualMachine,
209+
vm: VirtualMachine,
210210
condition: str,
211211
status: str = ResourceConstants.Condition.Status.TRUE,
212212
timeout: int = 300,
@@ -249,7 +249,7 @@ def wait_for_vmi_condition_status(
249249

250250

251251
def wait_for_no_vmi_condition(
252-
vm: BaseVirtualMachine,
252+
vm: VirtualMachine,
253253
condition: str,
254254
timeout: int = 300,
255255
resource_version: str | None = None,

0 commit comments

Comments
 (0)