Skip to content

Commit f3d4af0

Browse files
committed
change to check guest ID
Signed-off-by: dw035535 <[email protected]>
1 parent 1999f1c commit f3d4af0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

windows/vhba_hot_add_remove/vhba_test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
vm_nvme_spec13_enabled: >-
1212
{{
1313
vm_hardware_version_num | int >= 21 and
14-
((guest_os_product_type == 'server' and guest_os_build_num | int >= 20348) or
15-
(guest_os_product_type == 'client' and guest_os_build_num | int >= 22000))
14+
((guest_os_product_type == 'server' and
15+
(vm_guest_id | regex_search('windows(\\d+)srvNext', '\\1'))[0] | int >= 2019) or
16+
(guest_os_product_type == 'client' and
17+
(vm_guest_id | regex_search('windows(\\d+)_', '\\1'))[0] | int >= 11))
1618
}}
1719
when:
1820
- test_disk_ctrl_type == 'nvme'

0 commit comments

Comments
 (0)