fix: Python boolean case for Jinja2 rendered values

This commit is contained in:
2026-03-14 14:32:50 -07:00
parent 2cd8aac039
commit 464fba619f

View File

@@ -32,7 +32,7 @@
gtype = "{{ guest.type }}"
name = "{{ guest.name }}"
status = "{{ guest.status }}"
needs_fallback = {{ guest.needs_fallback | lower }}
needs_fallback = {{ guest.needs_fallback | lower | replace("true","True") | replace("false","False") }}
fallback = "{{ live_migrate_fallback }}"
shutdown_timeout = {{ vm_shutdown_timeout }}
start_timeout = {{ vm_start_timeout }}
@@ -105,4 +105,4 @@
- name: "Migrate | {{ guest.vmid }} ({{ guest.name }}) | Log result"
ansible.builtin.debug:
msg: "{{ migrate_result.stdout_lines }}"
delegate_to: localhost
delegate_to: localhost