Skip to content

Commit fdfa594

Browse files
committed
Allow libvirt_vm_emulator and libvirt_vm_engine to be empty strings
1 parent b19ea52 commit fdfa594

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/autodetect.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{%- else -%}
2727
qemu
2828
{%- endif -%}
29-
when: libvirt_vm_engine is none
29+
when: libvirt_vm_engine is none or libvirt_vm_engine | length == 0
3030

3131
- name: Detect the virtualisation emulator
3232
block:
@@ -62,4 +62,4 @@
6262
fail:
6363
msg: Unable to detect emulator for engine {{ libvirt_vm_engine }}.
6464
when: libvirt_vm_emulator is none
65-
when: libvirt_vm_emulator is none
65+
when: libvirt_vm_emulator is none or libvirt_vm_emulator | length == 0

0 commit comments

Comments
 (0)