fix(xwiki): guard missing-extensions assert against empty plugin set

When no XWiki addons are enabled (XWIKI_PLUGINS empty), the probe-results set_fact loop runs zero times and _xwiki_probe_results stays undefined, so the selectattr in the 'all requested extensions installed' assert raised AnsibleUndefinedVariable. Default it to [] so 'nothing requested' means 'nothing missing'.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 4.8 committed 2026-06-23 02:50:57 +02:00
1 parent 196074cdd0
commit dac01cfaf1
1 file changed
+1 -1
+1 -1
View File
@@ -163,7 +163,7 @@
- name: "XWIKI | Assert all requested extensions are installed"
vars:
missing: "{{ _xwiki_probe_results | selectattr('status','equalto',404) | map(attribute='id') | list }}"
missing: "{{ (_xwiki_probe_results | default([])) | selectattr('status','equalto',404) | map(attribute='id') | list }}"
fail:
msg: "Missing extensions: {{ missing | join(', ') }}"
when: missing | length > 0