Skip to content

Commit e6d8fba

Browse files
committed
address comments
Signed-off-by: dw035535 <[email protected]>
1 parent ca7f2a5 commit e6d8fba

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

windows/vhba_hot_add_remove/vhba_test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@
1515
- name: "For Windows {{ guest_os_product_type }} with guest ID {{ vm_guest_id }}"
1616
ansible.builtin.set_fact:
1717
vm_nvme_spec13_enabled: "{{ vm_guest_id | regex_search('windows(\\d+)srvNext', '\\1') | first | int >= 2019 }}"
18-
when: guest_os_product_type == 'server'
18+
when:
19+
- guest_os_product_type == 'server'
20+
- vm_guest_id | regex_search('windows(\\d+)srvNext')
1921

2022
- name: "For Windows {{ guest_os_product_type }} with guest ID {{ vm_guest_id }}"
2123
ansible.builtin.set_fact:
2224
vm_nvme_spec13_enabled: "{{ vm_guest_id | regex_search('windows(\\d+)_', '\\1') | first | int >= 11 }}"
23-
when: guest_os_product_type == 'client'
25+
when:
26+
- guest_os_product_type == 'client'
27+
- vm_guest_id | regex_search('windows(\\d+)_')
2428

2529
- name: "Skip test case"
2630
include_tasks: ../../common/skip_test_case.yml

0 commit comments

Comments
 (0)