fix: Python boolean case for Jinja2 rendered values

This commit is contained in:
2026-03-14 14:32:28 -07:00
parent 765f3f25aa
commit 2cd8aac039

View File

@@ -18,7 +18,7 @@
api_base = "https://{{ api_host }}:{{ api_port }}/api2/json" api_base = "https://{{ api_host }}:{{ api_port }}/api2/json"
headers = {"Authorization": "PVEAPIToken={{ api_token_id }}={{ api_token_secret }}"} headers = {"Authorization": "PVEAPIToken={{ api_token_id }}={{ api_token_secret }}"}
node = "{{ current_node }}" node = "{{ current_node }}"
shared = {{ shared_storage | lower }} shared = {{ shared_storage | lower | replace("true", "True") | replace("false", "False") }}
exclude_tags = {{ migrate_exclude_tags | to_json }} exclude_tags = {{ migrate_exclude_tags | to_json }}
def api_get(path): def api_get(path):